From 77a66a3eb8eac7a446285dc3ac7580b3f14d990c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Mar 2014 03:46:33 +0100 Subject: fix data types in documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/aux.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/aux.py b/src/aux.py index 4645f85..b2d99fd 100644 --- a/src/aux.py +++ b/src/aux.py @@ -22,8 +22,8 @@ def translate_to_integers(): ''' Translate the curves from float to integer - @param :(list, list, list) The red curve, the green curve and, - the blue curve mapped to integers + @param :(r:list, g:list, b:list) The red curve, the green curve and, + the blue curve mapped to integers ''' R_curve, G_curve, B_curve = [0] * i_size, [0] * i_size, [0] * i_size for i_curve, o_curve in ((r_curve, R_curve), (g_curve, G_curve), (b_curve, B_curve)): @@ -38,10 +38,10 @@ def ramps_to_function(r, g, b): ''' Convert a three colour curves to a function that applies those adjustments - @param r:int The red colour curves as [0, 65535] integers - @param g:int The green colour curves as [0, 65535] integers - @param b:int The blue colour curves as [0, 65535] integers - @return :()→void Function to invoke to apply the curves that the parameters [r, g and b] represents + @param r:list The red colour curves as [0, 65535] integers + @param g:list The green colour curves as [0, 65535] integers + @param b:list The blue colour curves as [0, 65535] integers + @return :()→void Function to invoke to apply the curves that the parameters [r, g and b] represents ''' r = [y / 65535 for y in r] g = [y / 65535 for y in g] @@ -53,8 +53,9 @@ def functionise(rgb): ''' Convert a three colour curves to a function that applies those adjustments - @param rgb:(:float, :float, :float) The colour curves as [0, 1] values - @return :()→void Function to invoke to apply the curves that the parameters [r, g and b] represents + @param rgb:(r:list, g:list, b:list) The colour curves as [0, 1] values + @return :()→void Function to invoke to apply the curves + that the parameters [r, g and b] represents ''' def fcurve(R_curve, G_curve, B_curve): for curve, cur in curves(R_curve, G_curve, B_curve): @@ -69,7 +70,7 @@ def store(): ''' Store the current adjustments - @return :(r:float, g:float, b:float) The colour curves + @return :(r:list, g:list, b:list) The colour curves ''' return (r_curve[:], g_curve[:], b_curve[:]) @@ -78,7 +79,7 @@ def restore(rgb): ''' Discard any currently applied adjustments and apply stored adjustments - @param rgb:(r:float, g:float, b:float) The colour curves to restore + @param rgb:(r:list, g:list, b:list) The colour curves to restore ''' (r_curve[:], g_curve[:], b_curve[:]) = rgb -- cgit v1.2.3-70-g09d2