Skip to content

Commit 2193d7a

Browse files
committed
[css-color-hdr] Added second color-hdr() worked example
1 parent c9a17d1 commit 2193d7a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

css-color-hdr-1/Overview.bs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
643643
Let <var>cxyz</var>[i] = pow(<var>c1xyz</var>[i] + <var>eps</var>, <var>w1</var> ) * pow(<var>c2xyz</var>[i] + <var>eps</var>, <var>w2</var> ) - <var>eps</var>
644644

645645
<div class="example" id="ex-hdr-interpolate">
646-
For example, given c1 = color(rec2100-linear 0.9 1.0 0.8)
646+
For example, given c1 = color(rec2100-linear 0.9 1.0 0.8),
647647
c2 = color(rec2100-linear 1.8 2.0 1.5),
648648
H1 = 0, H2 = 2, and H = 1:
649649

@@ -656,6 +656,23 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
656656
</pre>
657657
</div>
658658

659+
<div class="example" id="ex-hdr-interpolate-2">
660+
For exmple, given c1 = color(display-p3 1 1 0.33),
661+
c2 = jzczhz(70% 0.14 100),
662+
H1 = 0.5, H2 = 4 and H = 2;
663+
664+
<pre class="lang-css">
665+
c1xyz = [ 156.285, 188.337, 28.015 ]
666+
c2xyz = [ 3776.1434, 4362.407, 1577.913 ]
667+
w1 = 0.571
668+
w2 = 0.429
669+
cxyz = [ 611.911, 724.180, 157.650 ]
670+
</pre>
671+
672+
Note that c1 will be used unmodified at all headroom values &lt;= 0.5,
673+
and c2 will be used unmodified at all headroom values >= 4.
674+
</div>
675+
659676
<!-- Big Text: ICTCP Jaz
660677

661678
████ ███▌ █████▌ ███▌ ████▌ █▌ ███▌ █████▌

0 commit comments

Comments
 (0)