diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-24 07:55:22 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-24 07:55:22 +0100 |
commit | aa9bbf04c7064c2d39d411eb792a1be86c7aadd1 (patch) | |
tree | 6d12a0300b45869217398aa4fc813f80c2030a1c | |
parent | whitespace (diff) | |
download | blueshift-aa9bbf04c7064c2d39d411eb792a1be86c7aadd1.tar.gz blueshift-aa9bbf04c7064c2d39d411eb792a1be86c7aadd1.tar.bz2 blueshift-aa9bbf04c7064c2d39d411eb792a1be86c7aadd1.tar.xz |
add specs for linear ramp interpolation
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | src/aux.py | 13 |
2 files changed, 14 insertions, 2 deletions
@@ -7,8 +7,7 @@ Medium priority: to apply settings and how it affects the result. Low priority: - Raw ramp applying functions with recalcuated interpolation, linear and - polynomial + Raw ramp applying functions with precalcuated interpolation, polynomial Future stuff: Add wayland support (could not find an API for it, but xwayland works) @@ -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<int> The red colour curves as [0, 65535] integers + @param g:list<int> The green colour curves as [0, 65535] integers + @param b:list<int> The blue colour curves as [0, 65535] integers + @return :(r:list<int>, g:list<int>, b:list<int>) 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 |