Skip to content

Commit 4a080a4

Browse files
updated
Changes to the Lab & LCh color-space model input specifications. Noted that "D50" is a valid illuminant-matrix specification for the XYZ color-space model.
1 parent 6147afb commit 4a080a4

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

MasterColorPicker_desktop.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<meta charset='UTF-8'><!-- ¡ the ENTIRE PAGE must be encoded in UTF-8 ! This will have NO EFFECT; it is a reminder. -->
134134

135135
<!-- MasterColorPicker 2 Copyright © 2012, 2013, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Joe Golembieski, SoftMoon-WebWare
136-
release 2.6.11 November 15, 2024
136+
release 2.6.11 November 18, 2024
137137
Note that these color charts and palettes will work without an enclosing <form>,
138138
but to retain the settings this file may be included inside an existing web <form></form>
139139
-->
@@ -282,12 +282,12 @@ <h4>Choose the color-<abbr title='specification'>spec</abbr> output format:</h4>
282282
<tr><td class='clickable'>alpha</td>
283283
<th scope='row'>Always show an alpha value; <code>100%</code> if not specifically defined.</th></tr>
284284
<tr><td class='clickable'>precision:</td>
285-
<th scope='row'>For some color-space models,
286-
you may define the number of significant digits that are shown
287-
for some of the models’ values.&nbsp;
288-
(Note that precision below the default will result in some colors not converting back properly.)&nbsp;
289-
JavaScript™ limits the maximum precision internally.&nbsp;
290-
For example:<br><code>precision: 10</code></th></tr>
285+
<th scope='row'>For some color-space models,
286+
you may define the number of significant digits that are shown
287+
for some of the models’ values.&nbsp;
288+
(Note that precision below the default will result in some colors not converting back properly.)&nbsp;
289+
JavaScript™ limits the maximum precision internally.&nbsp;
290+
For example:<br><code>precision: 10</code></th></tr>
291291
</table>
292292
</popbox>
293293
<label id='MasterColorPicker_keepPrecision'>¿<input type='checkbox' name='MasterColorPicker_keepPrecision' value='true' checked
@@ -949,13 +949,13 @@ <h4>Valid values for color inputs are similar to “loose” CSS specifications
949949
<li><range></range><abbr title='OK: Hue, Chroma∝, Gray'>OKHCG</abbr></li>
950950
<li><range></range><abbr title='Lightness, a-axis, b-axis'>Lab</abbr> <aka>(<abbr title='International Commission on Illumination'>CIE</abbr> <abbr>L*a*b*</abbr> color space)</aka>
951951
→&nbsp; <code>(L,a,b,α) ‖ (<var>illuminant</var>, L,a,b,α)</code>
952-
<code>0 ≤ L ≤ (1.0‖100%),&nbsp;
952+
<code>0 ≤ L ≤ (100‖100%),&nbsp;
953953
<nobr>(-170‖-136%) ≤ (a,b) ≤ (170‖136%)</nobr></code> ← where <code>100%=125</code> is the <abbr title='Cascading Style Sheet'>CSS</abbr> standard.&nbsp;
954954
The alpha (opacity) <code>α</code> value is optional as always;
955955
and the optional <var>illuminant</var> may be <code>D50</code> (the default — as used by <abbr>CSS</abbr>) or <code>D65</code></li>
956956
<li><range></range><abbr title='Lightness, Chroma, Hue'>LCh</abbr> <aka>(<abbr title='International Commission on Illumination'>CIE</abbr> <abbr>LCh</abbr> color space)</aka>
957957
→&nbsp; <code>(L,C,h,α) ‖ (<var>illuminant</var>, L,C,h,α)</code>
958-
<code><nobr>0 ≤ L ≤ (1.0‖100%),</nobr>&nbsp;
958+
<code><nobr>0 ≤ L ≤ (100‖100%),</nobr>&nbsp;
959959
<nobr>0 ≤ C ≤ (230‖154%)</nobr></code> ← where <code>100%=150</code> is the <abbr title='Cascading Style Sheet'>CSS</abbr> standard.&nbsp;
960960
The alpha (opacity) <code>α</code> value is optional as always;
961961
and the optional <var>illuminant</var> may be <code>D50</code> (the default — as used by <abbr>CSS</abbr>) or <code>D65</code></li>
@@ -987,14 +987,14 @@ <h4>Valid values for color inputs are similar to “loose” CSS specifications
987987
<li><range></range><abbr title='Intensity, Chroma, Hue'>IChᵀᴾ</abbr>
988988
(use the <kbd><span>Alt</span></kbd> key for modifiers ᵀ &amp; ᴾ or use <aka>IChtp</aka>)
989989
<code><nobr>0 ≤ I ≤ (1.0‖100%),</nobr>&nbsp;
990-
<nobr>0 ≤ C ≤ (≈0.7071‖70.71%)</nobr></code> ← √(0.5²+0.5²)</li>
990+
<nobr>0 ≤ Cᵀᴾ ≤ (≈0.7071‖70.71%)</nobr></code> ← √(0.5²+0.5²)</li>
991991
<li><range></range><abbr>XYZ</abbr> <aka>(<abbr title='International Commission on Illumination'>CIE</abbr> <abbr>XYZ</abbr> color space)</aka>
992992
→&nbsp; <code>(X,Y,Z,α) ‖ (<var>illuminant</var>, X,Y,Z,α) ‖ (<var>color-profile</var>, X,Y,Z,α) ‖ (<var>color-profile</var>, <var>illuminant</var>, X,Y,Z,α)</code>
993993
<p>I am not sure of the exact limits of the input values, but I <em>think maybe</em> generally
994994
<code>0 ≤ X ≤ 0.950489,&nbsp; 0 ≤ Y ≤ 1,&nbsp; 0 ≤ Z ≤ 1.0883</code> seems to be fair for the <abbr>D65</abbr> illuminant…?</p>
995995
<p>The “<var>illuminant</var>” and/or “<var>color-profile</var>” is optional as shown; so is the alpha (opacity) value (α) as it always is.&nbsp;
996996
Currently, only <code>"sRGB"</code> is valid for “<var>color-profile</var>”.&nbsp;
997-
There are currently 6 different legal values for “<var>illuminant</var>
997+
There are currently 7 different legal values for “<var>illuminant</var>
998998
(these values are case <strong>sensitive</strong> and don’t miss the underscores _ ).&nbsp;
999999
<code>"D65"</code> is the default illuminant as this is the same as used for
10001000
the <abbr title='standard Red-Green-Blue'>sRGB</abbr> color-space.</p>
@@ -1027,6 +1027,9 @@ <h4>Valid values for color inputs are similar to “loose” CSS specifications
10271027
Uses the XYZ→RGB matrix provided by
10281028
<a target='XYZ' href="http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html">►Bruce Lindbloom</a>,
10291029
a respected color-theory researcher who’s math is supposedly “more correct”.</dd>
1030+
<dt><span>D50</span></dt>
1031+
<dd><specs><span>(Observer = 2°, Illuminant = D50)</span></specs>
1032+
There is no (known) “standard” matrix for this illuminant.&nbsp; We use “D50_Lindbloom” for now.
10301033
<dt><span>D50_Lindbloom</span></dt>
10311034
<dd><specs><span>(Observer = 2°, Illuminant = D50)</span></specs>
10321035
Uses the XYZ→RGB matrix provided by

0 commit comments

Comments
 (0)