summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-13 04:04:37 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-13 04:04:37 +0100
commit521f6c1cf2bf6066bfeab9c9a8fd6ceb6d96741c (patch)
treeef7e332005d01998cba0fff490991b7a14c9e2c0 /src/__main__.py
parentcolour temperature (diff)
downloadblueshift-521f6c1cf2bf6066bfeab9c9a8fd6ceb6d96741c.tar.gz
blueshift-521f6c1cf2bf6066bfeab9c9a8fd6ceb6d96741c.tar.bz2
blueshift-521f6c1cf2bf6066bfeab9c9a8fd6ceb6d96741c.tar.xz
missed to fix cie_contrast
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 92b8cdc..caab245 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -189,7 +189,7 @@ def cie_contrast(level):
if not level == 1.0:
for i in range(i_size):
(x, y, Y) = to_ciexyy(r_curve[i], g_curve[i], b_curve[i])
- (r_curve[i], g_curve[i], b_curve[i]) = to_rgb(x, y, Y * level)
+ (r_curve[i], g_curve[i], b_curve[i]) = to_rgb(x, y, (Y - 0.5) * level + 0.5)
def rgb_brightness(r, g, b):
'''