From cf523b5430e433292734af7141a850bc5392380a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Feb 2014 23:38:22 +0100 Subject: the tempurations are actually correct, suggest in doc to use divide_by_maximum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/curve.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/curve.py b/src/curve.py index b87e90f..74beb41 100644 --- a/src/curve.py +++ b/src/curve.py @@ -98,6 +98,8 @@ def cmf_2deg(temperature): ''' Calculate the colour for a blackbody temperature using raw CIE 1931 2 degree CMF data with interpolation + Using `lambda t : divide_by_maximum(cmf_2deg(t))` as the colour algorithm is better than just `cmf_2deg` + @param temperature:float The blackbody temperature in kelvins, clipped to [1000, 40000] @return :(float, float, float) The red, green and blue components of the white point ''' @@ -127,6 +129,8 @@ def cmf_10deg(temperature): ''' Calculate the colour for a blackbody temperature using raw CIE 1964 10 degree CMF data with interpolation + Using `lambda t : divide_by_maximum(cmf_10deg(t))` as the colour algorithm is better than just `cmf_10deg` + @param temperature:float The blackbody temperature in kelvins, clipped to [1000, 40000] @return :(float, float, float) The red, green and blue components of the white point ''' -- cgit v1.2.3-70-g09d2