From b3d4c5e1159e56a90af7e40ad3c5866241b3da09 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Feb 2014 17:53:04 +0100 Subject: m doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/colour.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/colour.py b/src/colour.py index 7cbfc8b..b71f325 100644 --- a/src/colour.py +++ b/src/colour.py @@ -20,9 +20,7 @@ def linear_to_standard(*colour): ''' Convert [0, 1] linear RGB to [0, 1] sRGB - @param r:float The red component - @param g:float The green component - @param b:float The blue component + @param colour:*float The red component, the green component, and the blue component @return :[float, float, float] The red, green and blue components ''' return [12.92 * c if c <= 0.0031308 else (1 + 0.055) * c ** (1 / 2.4) - 0.055 for c in colour] @@ -31,9 +29,7 @@ def standard_to_linear(*colour): ''' Convert [0, 1] sRGB to linear [0, 1] RGB - @param r:float The red component - @param g:float The green component - @param b:float The blue component + @param colour:*float The red component, the green component, and the blue component @return :[float, float, float] The red, green and blue components ''' return [c / 12.92 if c <= 0.04045 else ((c + 0.055) / (1 + 0.055)) ** 2.4 for c in colour] -- cgit v1.2.3-70-g09d2