summaryrefslogtreecommitdiffstats
path: root/color.py
diff options
context:
space:
mode:
authorRaymond Hogenson <rayhogenson@openmailbox.org>2016-09-27 17:32:26 -0400
committerRaymond Hogenson <rayhogenson@openmailbox.org>2016-09-27 17:32:26 -0400
commitdfa817559273c1b97e131f41a6051235d5ca4608 (patch)
tree79872ebb13449bfe1a26691ab080be1fbc72bfb3 /color.py
parentec7dde60155d3a0c37f96d3307bd45dba9ab5e7b (diff)
downloadbridge-dfa817559273c1b97e131f41a6051235d5ca4608.tar.zst
Fix to_RGB and to_HSV functions to actually work
Diffstat (limited to 'color.py')
-rw-r--r--color.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/color.py b/color.py
index 779d503..71fbaaf 100644
--- a/color.py
+++ b/color.py
@@ -46,7 +46,7 @@ def HSV(Vector):
def to_RGB(self):
"""Convert to an RGB vector."""
- return RGB(colorsys.hsv_to_rgb(*self.components))
+ return RGB(*colorsys.hsv_to_rgb(*self.components))
def h(self):
"""Return hue."""
@@ -69,7 +69,7 @@ def RGB(Vector):
def to_HSV(self):
"""Convert to HSV vector."""
- return HSV(colorsys.rgb_to_hsv(*self.components))
+ return HSV(*colorsys.rgb_to_hsv(*self.components))
def r(self):
"""Return red value."""