Skip to content

Commit b624c96

Browse files
committed
Update the default control points in viscm to valid ones
Necessary since the bug fix for sRGB viewing conditions broke the old default control points.
1 parent 72a0527 commit b624c96

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

viscm/gui.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -480,23 +480,15 @@ def __init__(self, uniform_space="CAM02-UCS",
480480
self.jp_min_slider.on_changed(self._jp_update)
481481
self.jp_max_slider.on_changed(self._jp_update)
482482

483-
# This is my favorite set of control points so far (just from playing
484-
# around with things):
485-
# min_Jp = 15
486-
# max_Jp = 95
487-
# xp =
488-
# [-4, 27.041103603603631, 84.311067635550557, 12.567076579094476, -9.6]
489-
# yp =
490-
# [-34, -41.447876447876524, 36.28563443264386, 25.357741755170423, 41]
491-
# -- njs, 2015-04-05
492-
493483
if xp is None:
494-
xp = [-4, 38.289146128951984, 52.1923711457504,
495-
39.050944362271053, 18.60872492130315, -9.6]
484+
xp = [-2.0591553836234482, 59.377014829142524,
485+
43.552546744036135, 4.7670857511283202,
486+
-9.5059638942617539]
496487

497488
if yp is None:
498-
yp = [-34, -34.34528254916614, -21.594701710471412,
499-
31.701084689194829, 29.510846891948262, 41]
489+
yp = [-25.664893617021221, -21.941489361702082,
490+
38.874113475177353, 20.567375886524871,
491+
32.047872340425585]
500492

501493
self.bezier_model = BezierModel(xp, yp)
502494
self.cmap_model = BezierCMapModel(self.bezier_model,

0 commit comments

Comments
 (0)