diff options
| author | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-09-27 17:32:26 -0400 |
|---|---|---|
| committer | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-09-27 17:32:26 -0400 |
| commit | dfa817559273c1b97e131f41a6051235d5ca4608 (patch) | |
| tree | 79872ebb13449bfe1a26691ab080be1fbc72bfb3 | |
| parent | ec7dde60155d3a0c37f96d3307bd45dba9ab5e7b (diff) | |
| download | bridge-dfa817559273c1b97e131f41a6051235d5ca4608.tar.zst | |
Fix to_RGB and to_HSV functions to actually work
| -rw-r--r-- | color.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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.""" |
