diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-17 02:55:52 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-17 02:55:52 +0100 |
commit | 00dd6c12f869a9d1fadd4a88c3b3b4373b799763 (patch) | |
tree | dc448e75fc1ed21213d50550d8aa023877268773 /src/colour.py | |
parent | forgot to include __main__ (diff) | |
download | blueshift-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.py | 16 |
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 |