Skip to content

Commit 532b89c

Browse files
committed
[css-color-4] add diagram
1 parent f2ad228 commit 532b89c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

css-color-4/Overview.bs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,7 @@ Device-dependent CMYK Colors: the ''device-cmyk()'' function</h2>
27622762
This is not trivial, like the conversion from HSL or HWB to RGB;
27632763
the precise conversion depends on the precise characteristics of the output device.
27642764

2765+
<!-- hopelessly handwavy and untestable -->
27652766
If the user agent has information about the output device such that it believes
27662767
it can accurately convert the CMYK color to a correct RGB color,
27672768
the computed value of the ''device-cmyk()'' function must be that RGBA color.
@@ -2784,6 +2785,23 @@ Device-dependent CMYK Colors: the ''device-cmyk()'' function</h2>
27842785
to avoid any color-matching difficulties.
27852786
</div>
27862787

2788+
The naive conversion is necessarily approximate,
2789+
since it has no knowledge of the colorimetry of the inks,
2790+
the dot gain,
2791+
the colorimetry of the RGB space, and so on.
2792+
2793+
<figure>
2794+
<img src="images/macbeth-naive.svg" style="width: 60vmin">
2795+
<figcaption>
2796+
A color checker, used for ensuring color fidelity
2797+
in the print and photographic inductries.
2798+
Averaged measured Lab values are available for each patch.
2799+
The rectangles show the Lab values, converted to sRGB.
2800+
The circles show the Lab values, passed through an ICC profile to convert them to CMYK.
2801+
The CMYK value are then naively converted to sRGB.
2802+
</figcaption>
2803+
</figure>
2804+
27872805
<h3 id='cmyk-rgb'>
27882806
Converting Between Uncalibrated CMYK and RGB-Based Colors</h3>
27892807

0 commit comments

Comments
 (0)