@@ -1663,7 +1663,7 @@ gamut space capable of representing almost all visible real-world colors. Both a
16631663<div class='example'>
16641664 This example specifies four profiled colors: for a standard CMYK press, for a wide-gamut
16651665 seven-ink printer, for ProPhoto RGB, and for the P3 standard RGB space.
1666-
1666+ <!-- add examples with alpha, and with fallback -->
16671667 <pre>
16681668 color(swopc, 0, 206 190 77);
16691669 color(indigo, 24 160 86 42 0 18 31);
@@ -1686,9 +1686,10 @@ gamut space capable of representing almost all visible real-world colors. Both a
16861686
16871687<h3 id="color-function">Specifying profiled colors: the ''color()'' function</h3>
16881688
1689- The color function takes an indentifier as the first parameter, followed by as many
1689+ The color function takes an indentifier as the first parameter, followed by either as many
16901690numerical parameters as are needed (three for an RGB colorspace, four for CMYK,
1691- one for greyscale, and so on). An optional, comma-separated alpha value is also supported.
1691+ one for greyscale, and so on) or a quoted string (for named color profiles).
1692+ An optional, comma-separated alpha value is also supported.
16921693The identifier is either one of the predefined spaces
16931694(<i> p3</i> or <i> rec2020</i> ) or the name of a profile. An optional fallback may be specified
16941695(an sRGB color, or indeed another color() function).
@@ -1697,14 +1698,15 @@ The identifier is either one of the predefined spaces
16971698 like AdobeRGB, ProPhoto RGB, and so on. Also coated and uncoated swop, etc, etc. </pre>
16981699
16991700 <pre class='prod'>
1700- <dfn>color()</dfn> = color( <<ident>> , <<number>> + [, <<alpha-value>> ]? [, <<fallback>> ]?)
1701+ <dfn>color()</dfn> = color( <<ident>> , [ <<number>> + | <<string>> ] [, <<alpha-value>> ]? [, <<fallback>> ]?)
17011702 </pre>
17021703
1703- <p class="issue"> How to handle cases where there are too many, or too few, numbers supplied?
1704- Seems like ignoring extra numbers, and treating unspecified numbers ar zero, would be
1705- the most robust?</p>
1704+ <p> If too many numbers are supplied, the first ones are used and the rest are silently ignored.
1705+ If too few numbers are supplied, unspecified numbers are considered to be zero.
1706+ This is convenient particularly for multichannel printers where the additional inks
1707+ are spot colors or varnishes and not used for most colors.</p>
17061708
1707- <p class="issue"> Need a fallback color, as decided at San Francisco. Add after the alpha value.
1709+ <p class="issue"> Further define a fallback color, as decided at San Francisco.
17081710 Can be an sRGB fallback or indeed another color() function.</p>
17091711
17101712 <p class="issue"> Need to add choice of quoted string or number+, to allow f
0 commit comments