Skip to content

Commit 28af543

Browse files
committed
[css-color-hdr] Added example of color interpolation #11616
1 parent d50b0fd commit 28af543

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

css-color-hdr-1/Overview.bs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,19 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
524524
5. Let <var>eps</var> = 0.001 (one JND in linear-light space)
525525
6. Let <var>cxyz</var> = pow(<var>c1xyz</var> + <var>eps</var>, <var>w1</var>) * pow(<var>c2xyz</var> + <var>eps</var>, <var>w2</var>) - <var>eps</var>
526526

527+
<div class="example" id="ex-hdr-interpolate">
528+
For example, given c1 = color(rec2100-linear 0.9 1.0 0.8)
529+
c2 = color(rec2100-linear 1.8 2.0 1.5),
530+
H1 = 0, H2 = 2, and H = 1:
531+
532+
<pre class="lang-css">
533+
c1xyz = color(xyz-d65 0.853 0.9619 0.8769)
534+
c2xyz = color(xyz-d65 1.689 1.918 1.648)
535+
w1 =
536+
w2 =
537+
</pre>
538+
</div>
539+
527540

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

0 commit comments

Comments
 (0)