Skip to content

Commit c41f10a

Browse files
committed
[css-color-4][editorial] Add a diagram showing imaginary colors in CIE Lab
1 parent 2ec9ac9 commit c41f10a

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed

css-color-4/Overview.bs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5403,6 +5403,26 @@ Note: This section provides important context for the specific requirements desc
54035403
Those colors tend to come from calculations
54045404
such as "make this color 100x as saturated".
54055405

5406+
<div class="example" id="ex-lab-corners">
5407+
For example, while theoretically unbounded,
5408+
the CIE Lab <em>(a,b)</em> plane is often implemented
5409+
such that <em>a</em> and <em>b</em> are constrained
5410+
to the range ±127.
5411+
5412+
Three of those four corners are outside the spectral locus
5413+
and thus correspond to imaginary colors.
5414+
5415+
<figure id="fig-lab-corners">
5416+
<object data="./images/UCS-rec2020-labcorners.svg"></object>
5417+
<figcaption>The four corners of the ±127 (a,b) plane,
5418+
on a UCS chromaticity diagram.
5419+
The outer shape is the spectral locus.
5420+
The larger triangle is the rec2020 gamut,
5421+
while the smaller is sRGB.
5422+
</figcaption>
5423+
</figure>
5424+
</div>
5425+
54065426
<h4 id="GM-clip">
54075427
Clipping</h4>
54085428

@@ -5463,7 +5483,7 @@ Clipping</h4>
54635483
This is a good result;
54645484
the hue angle and lightness have barely changed
54655485
but the chroma is somewhat reduced, as expected.
5466-
5486+
54675487
In terms of percentages of linear-light red green and blue,
54685488
the red and green are identical
54695489
while the blue is -1.46% higher.
@@ -5484,7 +5504,7 @@ Clipping</h4>
54845504
<code>color(display-p3 0 1 0)</code>
54855505
which in linear-light is, again,
54865506
<code>color(display-p3-linear 0 1 0)</code>
5487-
(component values of exactly 0 or 1 are unaffected by gamma encoding)
5507+
(component values of exactly 0 or 1 are unaffected by gamma encoding)
54885508
which, for comparison, is
54895509
<code>oklch(84.88% 0.3685 145.6)</code>.
54905510

css-color-4/images/UCS-rec2020-labcorners.svg

Lines changed: 19 additions & 3 deletions
Loading
10.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)