Skip to content

Commit 3b4ef61

Browse files
committed
[css-color-hdr][editorial] Added an example, needs calculated result added once that section is there.
1 parent 2eac325 commit 3b4ef61

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

css-color-hdr-1/Overview.bs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
463463
It does this by specifying two <<color>> values,
464464
each with an associated level of HDR headroom.
465465
The actual value is computed by interpolating between these two colors,
466-
based on the current amount of HDR headroom.
466+
based on the current amount of HDR headroom,
467+
as described in [#headroom-interpolation].
467468

468469
<div class="informative">
469470
This is a similar mechanism to gain maps,
@@ -480,6 +481,31 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
480481
<dfn>hdr-color()</dfn> = color-hdr([ <<color>> && <<number [1,infinity]>>? ]#{2})
481482
</pre>
482483

484+
<div class="example" id="ex-hdr-color-simple">
485+
Consider the color:
486+
487+
<pre class="lang-css">
488+
color-hdr(
489+
color(rec2100-linear 0.9 1.0 0.8) 0,
490+
color(rec2100-linear 1.8 2.0 1.5) 2);
491+
</pre>
492+
493+
On a display with [=HDR headroom=] &lt;= 0,
494+
this color will display as
495+
496+
<pre class="lang-css">color(rec2100-linear 0.9 1.0 0.8)</pre>
497+
498+
On a display with [=HDR headroom=] &gt;= 2,
499+
this color will display as
500+
501+
<pre class="lang-css">color(rec2100-linear 1.8 2.0 1.5) 2);</pre>
502+
503+
For displays whose headroom lies between 0 and 2, the color is
504+
interpolated. For example, on a display with HDR headroom 1:
505+
506+
@@ Add to the example with the calculated result at headroom 1 @@
507+
508+
</div>
483509

484510
<h2 id="color-function">
485511
Specifying Predefined and Custom Color Spaces: the ''color()'' Function

0 commit comments

Comments
 (0)