summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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