summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-14 17:51:33 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-14 17:51:33 +0100
commit9e08c586beb702b679b3a87adb83b3f1eed20cad (patch)
tree8ba8cb0589bfb35bc4ae9082e219363eaaf15b7e /src/__main__.py
parentm + doc colour.py (diff)
downloadblueshift-9e08c586beb702b679b3a87adb83b3f1eed20cad.tar.gz
blueshift-9e08c586beb702b679b3a87adb83b3f1eed20cad.tar.bz2
blueshift-9e08c586beb702b679b3a87adb83b3f1eed20cad.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/__main__.py')
-rwxr-xr-xsrc/__main__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/__main__.py b/src/__main__.py
index caab245..7b763f0 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -58,7 +58,7 @@ def series_d(temperature):
for (k, d) in ks:
x += k * 10 ** (d * 3) / temperature ** d
y = 2.870 * x - 3.000 * x ** 2 - 0.275
- return to_srgb(x, y, 1.0)
+ return ciexy_to_srgb(x, y, 1.0)
def simple_whitepoint(temperature):
'''
@@ -104,7 +104,7 @@ def cmf_2deg(temperature):
temp = (temp % 100) / 100
x = x1 * temp + x2 * (1 - temp)
y = y1 * temp + y2 * (1 - temp)
- return to_srgb(x, y, 1.0)
+ return ciexy_to_srgb(x, y, 1.0)
def cmf_10deg(temperature):
'''
@@ -129,7 +129,7 @@ def cmf_10deg(temperature):
temp = (temp % 100) / 100
x = x1 * temp + x2 * (1 - temp)
y = y1 * temp + y2 * (1 - temp)
- return to_srgb(x, y, 1.0)
+ return ciexy_to_srgb(x, y, 1.0)
def temperature(temperature, algorithm, linear_rgb = True):
@@ -188,7 +188,7 @@ def cie_contrast(level):
'''
if not level == 1.0:
for i in range(i_size):
- (x, y, Y) = to_ciexyy(r_curve[i], g_curve[i], b_curve[i])
+ (x, y, Y) = srgb_to_ciexyy(r_curve[i], g_curve[i], b_curve[i])
(r_curve[i], g_curve[i], b_curve[i]) = to_rgb(x, y, (Y - 0.5) * level + 0.5)
def rgb_brightness(r, g, b):
@@ -212,7 +212,7 @@ def cie_brightness(level):
'''
if not level == 1.0:
for i in range(i_size):
- (x, y, Y) = to_ciexyy(r_curve[i], g_curve[i], b_curve[i])
+ (x, y, Y) = srgb_to_ciexyy(r_curve[i], g_curve[i], b_curve[i])
(r_curve[i], g_curve[i], b_curve[i]) = to_rgb(x, y, Y * level)
def gamma(r, g, b):
@@ -246,7 +246,7 @@ def sigmoid(r, g, b):
def clip():
'''
- Clip all values belowed the actual minimum and above actual maximums
+ Clip all values below the actual minimum and above actual maximums
'''
for curve in (r_curve, g_curve, b_curve):
for i in range(i_size):