From aa9bbf04c7064c2d39d411eb792a1be86c7aadd1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 24 Mar 2014 07:55:22 +0100 Subject: add specs for linear ramp interpolation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/aux.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/aux.py b/src/aux.py index 90c47bd..77f9f3d 100644 --- a/src/aux.py +++ b/src/aux.py @@ -49,6 +49,19 @@ def ramps_to_function(r, g, b): return functionise((r, g, b)) +def linearly_interpolate_ramp(r, g, b): # TODO demo and document this + ''' + Linearly interpolate ramps to the size of the output axes + + @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 :(r:list, g:list, b:list) The input parameters extended to sizes of `o_size`, + or their original size, whatever is larger. + ''' + pass # TODO implement linearly_interpolate_ramp + + def functionise(rgb): ''' Convert a three colour curves to a function that applies those adjustments -- cgit v1.2.3-70-g09d2