From 00dd6c12f869a9d1fadd4a88c3b3b4373b799763 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Feb 2014 02:55:52 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/colour.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/colour.py') 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 -- cgit v1.2.3-70-g09d2