Skip to content

Commit 8773383

Browse files
committed
[css-color-hdr][editorial] Added another hdr interpolation example
1 parent 5f086c7 commit 8773383

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

css-color-hdr-1/Overview.bs

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,9 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
671671
</div>
672672

673673
<div class="example" id="ex-hdr-interpolate-2">
674-
For exmple, given c1 = color(display-p3 1 1 0.33),
674+
For example, given c1 = color(display-p3 1 1 0.33),
675675
c2 = jzczhz(70% 0.14 100),
676-
H1 = 0.5, H2 = 4 and H = 2;
676+
H1 = 0.5, H2 = 4, and H = 2;
677677

678678
<pre class="lang-css">
679679
c1xyz = [ 156.285, 188.337, 28.015 ]
@@ -687,6 +687,31 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
687687
and c2 will be used unmodified at all headroom values >= 4.
688688
</div>
689689

690+
<div class="example" id="ex-hdr-interpolate-3">
691+
For example, given c1 = ictcp(50% -0.3 0),
692+
c2 = ictcp(85% -0.35 0.1),
693+
H1 = 0, and H2 = 4.
694+
This would be expressed in CSS as:
695+
696+
<pre class="lang-css">
697+
color-hdr(
698+
var(--c1) 0,
699+
var(--c2) 4
700+
)
701+
</pre>
702+
703+
If H = 2.3
704+
705+
<pre class="lang-css">
706+
c1xyz = [63.6, 96.53, 8.558]
707+
c2xyz = [2521, 2508, 112.2]
708+
w1 = 0.425
709+
w2 = 0.575
710+
cxyz = [527.68, 628.20, 37.59]
711+
</pre>
712+
713+
</div>
714+
690715
<!-- Big Text: ICTCP Jaz
691716

692717
████ ███▌ █████▌ ███▌ ████▌ █▌ ███▌ █████▌

0 commit comments

Comments
 (0)