summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-12 23:47:50 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-12 23:47:50 +0100
commit0f199471cfe47dbe107eb7ef3bcdea09a0045fde (patch)
tree54502c9e56b1016bc656483013dcfd1645dd3d2b /src
parentsimple_whitepoint: truncate values (diff)
downloadblueshift-0f199471cfe47dbe107eb7ef3bcdea09a0045fde.tar.gz
blueshift-0f199471cfe47dbe107eb7ef3bcdea09a0045fde.tar.bz2
blueshift-0f199471cfe47dbe107eb7ef3bcdea09a0045fde.tar.xz
add missing minus
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src')
-rw-r--r--src/blackbody.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blackbody.py b/src/blackbody.py
index 4974b7e..1ad9b54 100644
--- a/src/blackbody.py
+++ b/src/blackbody.py
@@ -520,7 +520,7 @@ def simple_whitepoint(temperature):
'''
r, g, b, temp = 1, 1, 1, temperature / 100
if temp > 66:
- r = 1.292936186 * (temp - 60) ** 0.1332047592
+ r = 1.292936186 * (temp - 60) ** -0.1332047592
g = 1.129890861 * (temp - 60) ** -0.0755148492
else:
g = 0.390081579 * math.log(temp) - 0.631841444