summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-04 20:23:26 +0100
committerMattias Andrée <maandree@kth.se>2016-12-04 20:23:26 +0100
commitd6eb2096109122e223e194c6592138cf2d8f1923 (patch)
treed2fcd9904de85339c420ed717b6692c9d742dbec /src
parentMerge pull request #16 from jigpu/patch-1 (diff)
downloadblueshift-d6eb2096109122e223e194c6592138cf2d8f1923.tar.gz
blueshift-d6eb2096109122e223e194c6592138cf2d8f1923.tar.bz2
blueshift-d6eb2096109122e223e194c6592138cf2d8f1923.tar.xz
Fix error
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/colour.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colour.py b/src/colour.py
index 3bb83a2..3b248b2 100644
--- a/src/colour.py
+++ b/src/colour.py
@@ -150,7 +150,7 @@ def ciexyz_to_cielab(x, y, z):
'''
x /= 0.95047
z /= 1.08883
- f = lambda c : c ** 1 / 3 if c > 0.00885642 else (7.78 + 703 / 99900) * c + 0.1379310
+ f = lambda c : c ** (1 / 3) if c > 0.00885642 else (7.78 + 703 / 99900) * c + 0.1379310
l = 116 * f(y) - 16
a = 500 * (f(x) - f(y))
b = 200 * (f(y) - f(z))