summaryrefslogtreecommitdiffstats
path: root/src/colour.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-17 02:55:52 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-17 02:55:52 +0100
commit00dd6c12f869a9d1fadd4a88c3b3b4373b799763 (patch)
treedc448e75fc1ed21213d50550d8aa023877268773 /src/colour.py
parentforgot to include __main__ (diff)
downloadblueshift-00dd6c12f869a9d1fadd4a88c3b3b4373b799763.tar.gz
blueshift-00dd6c12f869a9d1fadd4a88c3b3b4373b799763.tar.bz2
blueshift-00dd6c12f869a9d1fadd4a88c3b3b4373b799763.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/colour.py')
-rw-r--r--src/colour.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/colour.py b/src/colour.py
index 69d3064..4a567d9 100644
--- a/src/colour.py
+++ b/src/colour.py
@@ -105,10 +105,10 @@ def srgb_to_ciexyy(r, g, b):
'''
if r == g == b == 0:
return (0.312857, 0.328993, 0)
- (r, g, b) = standard_to_linear(r, g, b)
- (X, Y, Z) = linear_to_ciexyz(r, g, b)
- (x, y, Y) = ciexyz_to_ciexyy(X, Y, Z)
- return (x, y, Y)
+ rc = standard_to_linear(r, g, b)
+ rc = linear_to_ciexyz(*rc)
+ rc = ciexyz_to_ciexyy(*rc)
+ return rc
def ciexyy_to_srgb(x, y, Y):
@@ -120,8 +120,8 @@ def ciexyy_to_srgb(x, y, Y):
@param Y:float The Y parameter
@return :[float, float, float] The red, green and blue components
'''
- (X, Y, Z) = ciexyy_to_ciexyz(x, y, Y)
- (r, g, b) = ciexyz_to_linear(X, Y, Z)
- (r, g, b) = linear_to_standard(r, g, b)
- return (r, g, b)
+ rc = ciexyy_to_ciexyz(x, y, Y)
+ rc = ciexyz_to_linear(*rc)
+ rc = linear_to_standard(*rc)
+ return rc