Skip to content

Commit 8c50dff

Browse files
committed
[css-color-5] Improve hue-rotate diagram, w3c#7690
1 parent 46aa862 commit 8c50dff

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

css-color-5/Overview.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,15 +1161,21 @@ However, unlike HSL, manipulations are not guaranteed to be in-gamut.
11611161
which is <span class="swatch" style="--color: rgb(0% 64.2% 66.3%)"></span> rgb(0% 64.2% 66.3%). The difference in chroma (37.5, instead of 90) is huge.
11621162

11631163
<figure id="fig-LCH-rotation-oog">
1164-
<img src="images/LCH-rotation-oog.svg"
1165-
width="540" height="520"
1166-
alt="Diagram of CH plane showing relative color manipulation">
1164+
<object data="images/LCH-rotation-oog.svg"
1165+
width="540" height="520"></object>
1166+
<p>Diagram of CIE CH plane showing relative color manipulation.
1167+
The <em>a</em> and <em>b</em> axes are labelled,
1168+
and cross in the middle.
1169+
We are looking down the central Lightness axis.
1170+
The maximal gamut of the sRGB color space
1171+
is shown as an irregular, convex polygon.
1172+
</p>
11671173
<figcaption>
11681174
This diagram shows the sRGB gamut, in the CIE ab plane.
11691175
Small circles indicate the primary and secondary color.
11701176
The <span class="swatch" style="--color: rgb(86.1% 33.4% 97.6%)"></span>
11711177
origin color, shown as a large circle, is in gamut for sRGB;
1172-
becomes <span class="swatch oog" style="--color: #AAA"></span> out of gamut (shown as a grey fill and red border)
1178+
but becomes <span class="swatch oog" style="--color: #AAA"></span> out of gamut (shown as a grey fill and red border)
11731179
when the LCH hue is rotated -120°.
11741180
The gamut-mapped <span class="swatch" style="--color: rgb(0% 64.2% 66.3%)"></span> result has much lower chroma.
11751181
</figcaption>

css-color-5/images/LCH-rotation-oog.svg

Lines changed: 23 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)