diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-02 23:20:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-02 23:20:50 +0200 |
commit | b551d150dd90da7084293e1e7edb3f5f3521f477 (patch) | |
tree | 8ba818386071a7456fc23200a0ea3ba466702f42 /src/blackbody.py | |
parent | ability to function without argparser (diff) | |
download | blueshift-b551d150dd90da7084293e1e7edb3f5f3521f477.tar.gz blueshift-b551d150dd90da7084293e1e7edb3f5f3521f477.tar.bz2 blueshift-b551d150dd90da7084293e1e7edb3f5f3521f477.tar.xz |
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blackbody.py')
-rw-r--r-- | src/blackbody.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blackbody.py b/src/blackbody.py index 83b2b9d..ac2e5ed 100644 --- a/src/blackbody.py +++ b/src/blackbody.py @@ -136,11 +136,11 @@ def cmf_xdeg(temperature, lut, temp_min = 1000, temp_max = 40000, temp_step = 10 # x component floor and y component floor floor = lut[int(temp // temp_step)] # x component ceiling and y component ceiling - celiing = lut[int(temp // temp_step + 1)] + ceiling = lut[int(temp // temp_step + 1)] # Weight temp = (temp % temp_step) / temp_step # Interpolation - (x, y) = [c1 * (1 - temp) + c2 * temp for c1, c2 in zip(floor, ceilng)] + (x, y) = [c1 * (1 - temp) + c2 * temp for c1, c2 in zip(floor, ceiling)] # Convert to sRGB return ciexyy_to_srgb(x, y, 1.0) |