aboutsummaryrefslogtreecommitdiff
path: root/util/ColorOps.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-08 18:47:17 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-08 18:47:17 -0500
commit03d08792f437e1ce93dc0cbfa997025029c8e74e (patch)
tree0f4b5a63317bc582c2ab760b7339a709b7445afb /util/ColorOps.py
parent9cf7747d70032cee28f29f9707360544a0e63277 (diff)
parent06c639db6b98affab4abf07e57a90e2fcb5402ef (diff)
Merge branch 'configimprovements' into objprops
Diffstat (limited to 'util/ColorOps.py')
-rw-r--r--util/ColorOps.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ColorOps.py b/util/ColorOps.py
index 4b1162a..796a902 100644
--- a/util/ColorOps.py
+++ b/util/ColorOps.py
@@ -40,3 +40,7 @@ def randomBrightColor():
hue, sat, val = colorsys.hsv_to_rgb(hue, sat, val)
ret = [hue, sat, val]
return floatToIntColor(ret)
+
+class Color(object):
+ def __init__(self, r,g,b):
+ self.rep = [r,g,b]