diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-12 23:47:50 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-12 23:47:50 +0100 |
commit | 0f199471cfe47dbe107eb7ef3bcdea09a0045fde (patch) | |
tree | 54502c9e56b1016bc656483013dcfd1645dd3d2b | |
parent | simple_whitepoint: truncate values (diff) | |
download | blueshift-0f199471cfe47dbe107eb7ef3bcdea09a0045fde.tar.gz blueshift-0f199471cfe47dbe107eb7ef3bcdea09a0045fde.tar.bz2 blueshift-0f199471cfe47dbe107eb7ef3bcdea09a0045fde.tar.xz |
add missing minus
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r-- | src/blackbody.py | 2 |
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 |