summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-20 18:59:26 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-20 18:59:26 +0100
commit386ee980cbb908d592bbb80b4a249e97594183cc (patch)
tree53e372e25fd6c2d8f1a466b82175dd96e6a6fd70
parentadd weather to comprehensive example (diff)
downloadblueshift-386ee980cbb908d592bbb80b4a249e97594183cc.tar.gz
blueshift-386ee980cbb908d592bbb80b4a249e97594183cc.tar.bz2
blueshift-386ee980cbb908d592bbb80b4a249e97594183cc.tar.xz
regression bug
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/curve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/curve.py b/src/curve.py
index 8f650a1..cca8a5a 100644
--- a/src/curve.py
+++ b/src/curve.py
@@ -135,7 +135,7 @@ def cie_brightness(r, g = ..., b = ...):
if same:
for i in range(i_size):
(x, y, Y) = srgb_to_ciexyy(r_curve[i], g_curve[i], b_curve[i])
- (r_curve[i], g_curve[i], b_curve[i]) = ciexyy_to_srgb(x, y, t * level)
+ (r_curve[i], g_curve[i], b_curve[i]) = ciexyy_to_srgb(x, y, Y * r)
else:
for i in range(i_size):
(x, y, Y) = srgb_to_ciexyy(r_curve[i], g_curve[i], b_curve[i])