summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-05 21:21:24 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-05 21:21:24 +0200
commit39a19f321675dd07457907b63c7b0732b294c77a (patch)
treef98db11400a0790a14129fc3e2d7717f6a24f62c
parentm (diff)
downloadblueshift-39a19f321675dd07457907b63c7b0732b294c77a.tar.gz
blueshift-39a19f321675dd07457907b63c7b0732b294c77a.tar.bz2
blueshift-39a19f321675dd07457907b63c7b0732b294c77a.tar.xz
not important to demo, just mention it in the comprehensive example
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--TODO1
-rw-r--r--examples/comprehensive1
-rw-r--r--src/blackbody.py2
-rw-r--r--src/curve.py2
4 files changed, 3 insertions, 3 deletions
diff --git a/TODO b/TODO
index f8276c8..c5d0d16 100644
--- a/TODO
+++ b/TODO
@@ -8,7 +8,6 @@ Medium priority:
to apply settings and how it affects the result.
Improve multi-screen and multi-display support so that new
connections are not need all the time.
- Demo colour temperature constants
Low priority:
Add support for temporarily closing DRM connection so that multiple users can run in DRM
diff --git a/examples/comprehensive b/examples/comprehensive
index b95e5c3..b8c7178 100644
--- a/examples/comprehensive
+++ b/examples/comprehensive
@@ -7,6 +7,7 @@
# However the are features that are only covered by the info manual:
# Methods for calculating correlated colour temperature
# The `functionise` function
+# Predefined colour temperatures
# This file is dual-licensed under GNU General Public License
diff --git a/src/blackbody.py b/src/blackbody.py
index ad1a0f1..5f5bfc4 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 this
+def kelvins(temperature):
'''
Resolve and colour temperature name
diff --git a/src/curve.py b/src/curve.py
index 034be46..2953095 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 this and add to textconf and lisp-esque
+ temperature = kelvins(temperature)
# Do nothing if the temperature is neutral
if temperature == 6500: return
# Otherwise manipulate the colour curves