aboutsummaryrefslogtreecommitdiff
path: root/util/ColorOps.py
diff options
context:
space:
mode:
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]