Skip to content

Commit 0b4c333

Browse files
committed
[css-color-4] Add FOGRA55 7-color example
1 parent 532b89c commit 0b4c333

File tree

1 file changed

+67
-19
lines changed

1 file changed

+67
-19
lines changed

css-color-4/Overview.bs

Lines changed: 67 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ For example, to specify lime green:
212212

213213
<div class="example">
214214
<pre class="lang-css">
215-
em { color: lime; } /* color keyword */
216-
em { color: rgb(0 255 0); } /* RGB range 0-255 */
215+
em { color: lime; } /* color keyword */
216+
em { color: rgb(0 255 0); } /* RGB range 0-255 */
217217
em { color: rgb(0% 100% 0%); } /* RGB range 0%-100% */
218218
</pre>
219219
</div>
@@ -223,14 +223,14 @@ For example, to specify lime green:
223223
<dd>The <<color>> type is defined in a later section.
224224
</dl>
225225

226-
<p class="note">
227-
Note: In general, this property, including its alpha component, has
228-
no effect on "color glyphs", such as emoji in some fonts, which are
229-
colored by a built-in palette. Some colored fonts are able to refer
230-
to the foreground color, such as palette entry ''0xFFFF'' in COLR
231-
table of OpenType, and ''context-fill'' value in SVG-in-OpenType. In
232-
that case, the foreground color is set by this property, identical
233-
to how ''<color>/currentcolor'' value works.
226+
<p class="note">
227+
Note: In general, this property, including its alpha component, has
228+
no effect on "color glyphs", such as emoji in some fonts, which are
229+
colored by a built-in palette. Some colored fonts are able to refer
230+
to the foreground color, such as palette entry ''0xFFFF'' in COLR
231+
table of OpenType, and ''context-fill'' value in SVG-in-OpenType. In
232+
that case, the foreground color is set by this property, identical
233+
to how ''<color>/currentcolor'' value works.
234234

235235
<h2 id='color-type'>
236236
Representing Colors: the <<color>> type</h2>
@@ -256,10 +256,10 @@ Representing Colors: the <<color>> type</h2>
256256

257257
<pre class='prod'>
258258
&lt;color> = <<hex-color>> | <<named-color>> | currentcolor | transparent
259-
<<rgb()>> | <<rgba()>> | <<hsl()>> | <<hsla()>> | <<hwb()>> |
260-
<<lab()>> | <<lch()>> |
261-
<<color()>> | <<device-cmyk()>> |
262-
<<system-color>>
259+
<<rgb()>> | <<rgba()>> | <<hsl()>> | <<hsla()>> | <<hwb()>> |
260+
<<lab()>> | <<lch()>> |
261+
<<color()>> | <<device-cmyk()>> |
262+
<<system-color>>
263263
</pre>
264264

265265
The <dfn export>color-functions</dfn> are <<rgb()>>, <<rgba()>>,
@@ -412,7 +412,7 @@ The RGB functions: ''rgb()'' and ''rgba()''</h3>
412412

413413
<pre class='prod'>
414414
<dfn>rgb()</dfn> = rgb( <<percentage>>{3} [ / <<alpha-value>> ]? ) |
415-
rgb( <<number>>{3} [ / <<alpha-value>> ]? )
415+
rgb( <<number>>{3} [ / <<alpha-value>> ]? )
416416
<dfn>&lt;alpha-value></dfn> = <<number>> | <<percentage>>
417417
</pre>
418418

@@ -447,7 +447,7 @@ The RGB functions: ''rgb()'' and ''rgba()''</h3>
447447

448448
<pre class='prod'>
449449
rgb() = rgb( <<percentage>>#{3} , <<alpha-value>>? ) |
450-
rgb( <<number>>#{3} , <<alpha-value>>? )
450+
rgb( <<number>>#{3} , <<alpha-value>>? )
451451
</pre>
452452

453453
Also for legacy reasons,
@@ -2712,6 +2712,54 @@ Array(3) [ 0.16582655785857967, 0.6147848214649991, 0.3532666045888559 ]
27122712
-->
27132713
</div>
27142714

2715+
Colors are not restricted to four inks (CMYK). For example, wide-gamut 7 Color ink sets can be used.
2716+
2717+
<div class="example">This example uses the beta FOGRA55 dataset for KCMYOGV seven-color printing.
2718+
Four of the inks - black, cyan, magenta, and yellow - are the same as,
2719+
and give the same results as, the FOGRA51 set.
2720+
The other three inks are:
2721+
<ul><li>Pantone Orange 021C</li>
2722+
<li>Pantone Green C</li>
2723+
<li>Pantone Violet C</li>
2724+
</ul>
2725+
2726+
The measurement condition is M1,
2727+
which means that optical brighteners in the paper are accounted for
2728+
and the spectrophotometer has no UV-cut filter.
2729+
2730+
<!-- see file Macbeth-7color.txt --->
2731+
2732+
<pre>
2733+
@color-profile --fogra55beta {
2734+
src: url('https://example.org/2020_13.003_FOGRA55beta_CL_Profile.icc');
2735+
}
2736+
.dark_skin {
2737+
background-color: <span class="swatch" style="--color: rgb(45.8702% 32.0071% 26.3813%)"></span>
2738+
color(--fogra55beta 0.183596 0.464444 0.461729 0.612490 0.156903 0.000000 0.000000);
2739+
}
2740+
.light_skin {
2741+
background-color: <span class="swatch" style="--color: rgb(78.0170% 58.1957% 50.7737%)"></span>
2742+
color(--fogra55beta 0.070804 0.334971 0.321802 0.215606 0.103107 0.000000 0.000000);
2743+
}
2744+
.blue_sky {
2745+
background-color: <span class="swatch" style="--color: rgb(35.8614% 48.0665% 61.6556%)"></span>
2746+
color(--fogra55beta 0.572088 0.229346 0.081708 0.282044 0.000000 0.000000 0.168260);
2747+
}
2748+
.foliage {
2749+
background-color: <span class="swatch" style="--color: rgb(34.9582% 42.3446% 25.4209%)"></span>
2750+
color(--fogra55beta 0.314566 0.145687 0.661941 0.582879 0.000000 0.234362 0.000000);
2751+
}
2752+
.blue_flower {
2753+
background-color: <span class="swatch" style="--color: rgb(51.2952% 50.4131% 68.9186%)"></span>
2754+
color(--fogra55beta 0.375515 0.259934 0.034849 0.107161 0.000000 0.000000 0.308200);
2755+
}
2756+
.bluish_green {
2757+
background-color: <span class="swatch" style="--color: rgb(36.8792% 74.3685% 67.4749%)"></span>
2758+
color(--fogra55beta 0.397575 0.010047 0.223682 0.031140 0.000000 0.317066 0.000000);
2759+
}
2760+
</pre>
2761+
</div>
2762+
27152763
<h2 id="working-color-space">
27162764
Working Color Space</h2>
27172765

@@ -2831,7 +2879,7 @@ Converting Between Uncalibrated CMYK and RGB-Based Colors</h3>
28312879
Otherwise:
28322880

28332881
<ul class="lang-javascript">
2834-
<li><code>red = 1 - min(1, cyan * (1 - black) + black)</code>
2882+
<li><code>red = 1 - min(1, cyan * (1 - black) + black)</code>
28352883
<li><code>green = 1 - min(1, magenta * (1 - black) + black)</code>
28362884
<li><code>blue = 1 - min(1, yellow * (1 - black) + black)</code>
28372885
<li>Alpha is same as for input color.
@@ -2841,7 +2889,7 @@ Converting Between Uncalibrated CMYK and RGB-Based Colors</h3>
28412889

28422890
<ul class="lang-javascript">
28432891
<li><code>black = 1 - max(red, green, blue)</code>
2844-
<li><code>cyan = (1 - red - black) / (1 - black), or 0 if black is 1</code>
2892+
<li><code>cyan = (1 - red - black) / (1 - black), or 0 if black is 1</code>
28452893
<li><code>magenta = (1 - green - black) / (1 - black), or 0 if black is 1</code>
28462894
<li><code>yellow = (1 - blue - black) / (1 - black), or 0 if black is 1</code>
28472895
<li>alpha is the same as the input color
@@ -2921,7 +2969,7 @@ Default Style Rules</h2>
29212969
}
29222970

29232971
/* traditional desktop user agent colors for hyperlinks */
2924-
:link { color: blue; }
2972+
:link { color: blue; }
29252973
:visited { color: purple; }
29262974
</pre>
29272975

0 commit comments

Comments
 (0)