@@ -2015,7 +2015,7 @@ Profiled, Device-dependent Colors</h2>
2015
2015
''color()'' represents <a>opaque black</a> .
2016
2016
2017
2017
<h3 id="predefined">
2018
- Predefined colorspaces: ''srgb'', ''display-p3'', ''a98rgb '', ''prophotorgb '' and ''rec2020 ''.</h3>
2018
+ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98-rgb '', ''prophoto-rgb '' and ''rec-2020 ''.</h3>
2019
2019
2020
2020
The following colorspaces are predefined for use in the ''color()'' function.
2021
2021
They can be used without any ''@color-profile'' rule.
@@ -2080,21 +2080,21 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98rgb'', ''prophotorgb'' an
2080
2080
<tr><th> Black luminance</th><td colspan="2"> 0.80 cd/m<sup> 2</sup></td></tr>
2081
2081
</table>
2082
2082
2083
- <dt> <dfn>a98rgb </dfn>
2083
+ <dt> <dfn>a98-rgb </dfn>
2084
2084
<dd>
2085
- The ''a98rgb '' colorspace accepts three numeric parameters,
2085
+ The ''a98-rgb '' colorspace accepts three numeric parameters,
2086
2086
representing the red, green, and blue channels of the color,
2087
2087
with each having a valid range of [0, 1] . The transfer curve is
2088
2088
a gamma function, close to but not exactly 1/2.2.
2089
2089
2090
- ''a98rgb '' is compatible with Adobe® RGB (1998) [[!AdobeRGB]] .
2090
+ ''a98-rgb '' is compatible with Adobe® RGB (1998) [[!AdobeRGB]] .
2091
2091
2092
2092
Adobe® RGB (1998) uses primaries originally derived
2093
2093
from the SMPTE 240M standard;
2094
2094
errors in the original conversion turned out
2095
2095
to produce a colorspace that was useful for digital photography,
2096
2096
so Adobe® RGB (1998) is a common wider-gamut colorspace for
2097
- photographic images. The ''a98rgb '' colorspace allows CSS to
2097
+ photographic images. The ''a98-rgb '' colorspace allows CSS to
2098
2098
specify colors that will match colors in such images
2099
2099
having the same RGB values.
2100
2100
@@ -2111,9 +2111,9 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98rgb'', ''prophotorgb'' an
2111
2111
<tr><th> Black luminance</th><td colspan="2"> 0.5557 cd/m<sup> 2</sup></td></tr>
2112
2112
</table>
2113
2113
2114
- <dt> <dfn>prophotorgb </dfn>
2114
+ <dt> <dfn>prophoto-rgb </dfn>
2115
2115
<dd>
2116
- The ''prophotorgb '' colorspace accepts three numeric parameters,
2116
+ The ''prophoto-rgb '' colorspace accepts three numeric parameters,
2117
2117
representing the red, green, and blue channels of the color,
2118
2118
with each having a valid range of [0, 1] . The transfer curve is
2119
2119
a gamma function with a value of 1/1.8.
@@ -2124,7 +2124,7 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98rgb'', ''prophotorgb'' an
2124
2124
a wide color gamut and to minimise hue shifts under tonal manipulation.
2125
2125
It is often used in digital photography as a wide gamut
2126
2126
colorspace for the master version of
2127
- photographic images. The ''prophotorgb '' colorspace allows CSS to
2127
+ photographic images. The ''prophoto-rgb '' colorspace allows CSS to
2128
2128
specify colors that will match colors in such images
2129
2129
having the same RGB values.
2130
2130
@@ -2145,9 +2145,9 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98rgb'', ''prophotorgb'' an
2145
2145
<tr><th> Black luminance</th><td colspan="2"> See text</td></tr>
2146
2146
</table>
2147
2147
2148
- <dt> <dfn>rec2020 </dfn>
2148
+ <dt> <dfn>rec-2020 </dfn>
2149
2149
<dd>
2150
- The ''rec2020 '' [[!Rec.2020]] colorspace accepts three numeric parameters,
2150
+ The ''rec-2020 '' [[!Rec.2020]] colorspace accepts three numeric parameters,
2151
2151
representing the red, green, and blue channels of the color,
2152
2152
with each having a valid range of [0, 1] . ITU Reference 2020 is used for High Definition, 4k and 8k television.
2153
2153
@@ -2162,7 +2162,7 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98rgb'', ''prophotorgb'' an
2162
2162
<tr><th> Transfer function</th><td colspan="2"> 1/2.4 (see note)</td></tr>
2163
2163
</table>
2164
2164
2165
- Note: Rec2020 references a different transfer curve for cameras. However
2165
+ Note: rec-2020 references a different transfer curve for cameras. However
2166
2166
this curve is never used in production cameras or 2020 displays.<br/>
2167
2167
"In typical production practice the encoding function of image sources is adjusted so that the final picture has the desired look, as viewed on a reference monitor having the reference decoding function of Recommendation ITU-R BT.1886, in the reference viewing environment defined in Recommendation ITU-R BT.2035."<br/>
2168
2168
The transfer function (1886) for reference Rec.2020 displays is gamma 2.4 [[!Rec.2020]]
@@ -2180,7 +2180,7 @@ Converting predefined colorspaces to Lab</h4>
2180
2180
<ol>
2181
2181
<li> Convert from gamma-corrected RGB to linear-light RGB (undo gamma encoding)
2182
2182
<li> Convert from linear RGB to CIE XYZ
2183
- <li> Convert from a D65 whitepoint (used by both display-p3 and rec2020 ) to the D50 whitepoint used in Lab,
2183
+ <li> Convert from a D65 whitepoint (used by both display-p3 and rec-2020 ) to the D50 whitepoint used in Lab,
2184
2184
with the Bradford transform
2185
2185
<li> Convert D50-adapted XYZ to Lab
2186
2186
</ol>
@@ -2189,7 +2189,7 @@ Converting predefined colorspaces to Lab</h4>
2189
2189
<h4 id="lab-to-predefined">
2190
2190
Converting Lab to predefined colorspaces</h4>
2191
2191
2192
- Conversion from Lab to display-p3 or rec2020 also requires multiple steps,
2192
+ Conversion from Lab to display-p3 or rec-2020 also requires multiple steps,
2193
2193
and again in practice all but the last step are linear calculations and can be combined.
2194
2194
2195
2195
<ol>
@@ -2218,7 +2218,7 @@ Specifying a color profile: the ''@color-profile'' at-rule</h3>
2218
2218
2219
2219
The <<custom-ident>> gives the <a>color profile's</a> name.
2220
2220
All of the predefined colorspace keywords
2221
- (''srgb'' , ''display-p3'' , ''a98rgb '' , ''prophotorgb '' , ''rec2020 '' )
2221
+ (''srgb'' , ''display-p3'' , ''a98-rgb '' , ''prophoto-rgb '' , ''rec-2020 '' )
2222
2222
are excluded from this <<custom-ident>> ,
2223
2223
as they're predefined by this specification and always available.
2224
2224
@@ -2621,10 +2621,10 @@ Default Style Rules</h2>
2621
2621
return math.multiply(M, XYZ).valueOf();
2622
2622
}
2623
2623
2624
- // ProPhotoRGB functions
2624
+ // prophoto-rgb functions
2625
2625
2626
2626
function lin_ProPhoto(RGB) {
2627
- // convert an array of ProPhotoRGB values in the range 0.0 - 1.0
2627
+ // convert an array of prophoto-rgb values in the range 0.0 - 1.0
2628
2628
// to linear light (un-companded) form.
2629
2629
// Transfer curve is gamma 1.0 with a small linear portion
2630
2630
return RGB.map(function (val) {
@@ -2637,7 +2637,7 @@ Default Style Rules</h2>
2637
2637
}
2638
2638
2639
2639
function gam_ProPhoto(RGB) {
2640
- // convert an array of linear-light ProPhotoRGB in the range 0.0-1.0
2640
+ // convert an array of linear-light prophoto-rgb in the range 0.0-1.0
2641
2641
// to gamma corrected form
2642
2642
// Transfer curve is gamma 1.0 with a small linear portion
2643
2643
return RGB.map(function (val) {
@@ -2650,7 +2650,7 @@ Default Style Rules</h2>
2650
2650
}
2651
2651
2652
2652
function lin_ProPhoto_to_XYZ(rgb) {
2653
- // convert an array of linear-light ProPhotoRGB values to CIE XYZ
2653
+ // convert an array of linear-light prophoto-rgb values to CIE XYZ
2654
2654
// using D50 (so no chromatic adaptation needed afterwards)
2655
2655
// http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
2656
2656
var M = Math.matrix([
@@ -2663,7 +2663,7 @@ Default Style Rules</h2>
2663
2663
}
2664
2664
2665
2665
function XYZ_to_lin_ProPhoto(XYZ) {
2666
- // convert XYZ to linear-light ProPhotoRGB
2666
+ // convert XYZ to linear-light prophoto-rgb
2667
2667
var M = Math.matrix([
2668
2668
[ 1.3457989731028281, -0.25558010007997534, -0.05110628506753401 ] ,
2669
2669
[ -0.5446224939028347, 1.5082327413132781, 0.02053603239147973 ] ,
@@ -2673,26 +2673,26 @@ Default Style Rules</h2>
2673
2673
return Math.multiply(M, XYZ).valueOf();
2674
2674
}
2675
2675
2676
- // a98rgb functions
2676
+ // a98-rgb functions
2677
2677
2678
- function lin_a98rgb (RGB) {
2679
- // convert an array of a98rgb values in the range 0.0 - 1.0
2678
+ function lin_a98-rgb (RGB) {
2679
+ // convert an array of a98-rgb values in the range 0.0 - 1.0
2680
2680
// to linear light (un-companded) form.
2681
2681
return RGB.map(function (val) {
2682
2682
return Math.pow(val, 563/256);
2683
2683
});
2684
2684
}
2685
2685
2686
- function gam_a98rgb (RGB) {
2687
- // convert an array of linear-light a98rgb in the range 0.0-1.0
2686
+ function gam_a98-rgb (RGB) {
2687
+ // convert an array of linear-light a98-rgb in the range 0.0-1.0
2688
2688
// to gamma corrected form
2689
2689
return RGB.map(function (val) {
2690
2690
return Math.pow(val, 256/563);
2691
2691
});
2692
2692
}
2693
2693
2694
- function lin_a98rgb_to_XYZ (rgb) {
2695
- // convert an array of linear-light ProPhotoRGB values to CIE XYZ
2694
+ function lin_a98-rgb_to_XYZ (rgb) {
2695
+ // convert an array of linear-light prophoto-rgb values to CIE XYZ
2696
2696
// using D50 (so no chromatic adaptation needed afterwards)
2697
2697
// http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
2698
2698
var M = Math.matrix([
@@ -2704,8 +2704,8 @@ Default Style Rules</h2>
2704
2704
return Math.multiply(M, rgb).valueOf();
2705
2705
}
2706
2706
2707
- function XYZ_to_lin_a98rgb (XYZ) {
2708
- // convert XYZ to linear-light ProPhotoRGB
2707
+ function XYZ_to_lin_a98-rgb (XYZ) {
2708
+ // convert XYZ to linear-light prophoto-rgb
2709
2709
var M = Math.matrix([
2710
2710
[ 2.0415879038107465, -0.5650069742788596, -0.34473135077832956 ] ,
2711
2711
[ -0.9692436362808795, 1.8759675015077202, 0.04155505740717557 ] ,
@@ -2994,10 +2994,10 @@ Changes</h2>
2994
2994
<li> Clarify hue in LCH is modulo 360deg</li>
2995
2995
<li> Clarify allowed range of L in LCH and Lab, and meaning of L=100</li>
2996
2996
<li> Update references for colorspaces used in video</li>
2997
- <li> Add ProPhotoRGB predefined colorspace</li>
2997
+ <li> Add prophoto-rgb predefined colorspace</li>
2998
2998
<li> Correct black and white luminance levels for display-p3</li>
2999
2999
<li> Clarify display-p3 transfer function</li>
3000
- <li> Add a98rgb colorspace</li>
3000
+ <li> Add a98-rgb colorspace</li>
3001
3001
<li> Clarify that currentColor's computed value is not the resolved color</li>
3002
3002
<li> Update syntax is examples to conform to latest specification</li>
3003
3003
<li> Remove the color-mod() function</li>
0 commit comments