diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-13 04:04:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-13 04:04:37 +0100 |
commit | 521f6c1cf2bf6066bfeab9c9a8fd6ceb6d96741c (patch) | |
tree | ef7e332005d01998cba0fff490991b7a14c9e2c0 /src/__main__.py | |
parent | colour temperature (diff) | |
download | blueshift-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-x | src/__main__.py | 2 |
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): ''' |