From b551d150dd90da7084293e1e7edb3f5f3521f477 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Apr 2014 23:20:50 +0200 Subject: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blackbody.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2