diff options
Diffstat (limited to '')
-rw-r--r-- | src/curve.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/curve.py b/src/curve.py index 8a6b28c..34adf29 100644 --- a/src/curve.py +++ b/src/curve.py @@ -263,6 +263,20 @@ def gamma(r, g, b): curve[i] **= level +def negative(r, g, b): + ''' + Invert the colour curves (negative image) + + @param r:bool Whether to invert the red curve + @param g:bool Whether to invert the green curve + @param b:bool Whether to invert the blue curve + ''' + for (curve, setting) in curves(r, g, b): + if setting: + for i in range(i_size): + curve[i] = 1 - curve[i] + + def sigmoid(r, g, b): ''' Apply S-curve correction on the colour curves |