summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-05 20:55:34 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-05 20:55:34 +0200
commit7f7a2ece327a07c4b08e61e89a693e96968de2d6 (patch)
tree3f3dd149f9f2be2d3f60e8d4e81fe216e3091275 /src
parentlist temperature constants in info manual (diff)
downloadblueshift-7f7a2ece327a07c4b08e61e89a693e96968de2d6.tar.gz
blueshift-7f7a2ece327a07c4b08e61e89a693e96968de2d6.tar.bz2
blueshift-7f7a2ece327a07c4b08e61e89a693e96968de2d6.tar.xz
document kelvins and the automatic use of it
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/blackbody.py2
-rw-r--r--src/curve.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/blackbody.py b/src/blackbody.py
index 686f94e..9b9352c 100644
--- a/src/blackbody.py
+++ b/src/blackbody.py
@@ -683,7 +683,7 @@ def clip_whitepoint(rgb):
return [min(max(0, x), 1) for x in rgb]
-def kelvins(temperature): # TODO demo and document this
+def kelvins(temperature): # TODO demo this
'''
Resolve and colour temperature name
diff --git a/src/curve.py b/src/curve.py
index 24e7330..034be46 100644
--- a/src/curve.py
+++ b/src/curve.py
@@ -73,7 +73,7 @@ def rgb_temperature(temperature, algorithm):
@param algorithm:(float)→(float, float, float) Algorithm for calculating a white point, for example `cmf_10deg`
'''
# Resolve colour temperature name
- temperature = kelvins(temperature) # TODO demo and document this and add to textconf and lisp-esque
+ temperature = kelvins(temperature) # TODO demo this and add to textconf and lisp-esque
# Do nothing if the temperature is neutral
if temperature == 6500: return
# Otherwise manipulate the colour curves