@@ -592,7 +592,16 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
592
592
</pre>
593
593
</div>
594
594
595
- <!-- Big Text: ICTCP Jaz -->
595
+ <!-- Big Text: ICTCP Jaz
596
+
597
+ ████ ███▌ █████▌ ███▌ ████▌ █▌ ███▌ █████▌
598
+ ▐▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█ ▐█ ▐▌
599
+ ▐▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐▌
600
+ ▐▌ █▌ █▌ █▌ ████▌ █▌ █▌ █▌ █▌
601
+ ▐▌ █▌ █▌ █▌ █▌ █▌ █▌ █████▌ █
602
+ ▐▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █
603
+ ████ ███▌ █▌ ███▌ █▌ ███▌ █▌ █▌ █████▌
604
+ -->
596
605
597
606
<h2 id="DI-HDR">
598
607
Device-Independent HDR Colors
@@ -719,7 +728,7 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
719
728
<div class="example">
720
729
This color represents the sRGB color "lime" in ''ICtCp''
721
730
<pre>
722
- <span class="swatch" style="--color: lime"></span> color( ictcp 0.5393 -0.2643 -0.0625)
731
+ <span class="swatch" style="--color: lime"></span> ictcp( 0.5393 -0.2643 -0.0625)
723
732
</pre>
724
733
</div>
725
734
@@ -731,7 +740,7 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
731
740
It is the same color as sRGB ''white'' .
732
741
Diffuse white is 203 cd/m² [[!Rec_BT.2100]] .
733
742
<pre>
734
- <span class="swatch" style="--color: white"></span> color( ictcp 0.58069 0 0)
743
+ <span class="swatch" style="--color: white"></span> ictcp( 0.58069 0 0)
735
744
</pre>
736
745
</div>
737
746
@@ -781,7 +790,7 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
781
790
It is the same color as sRGB ''white'' .
782
791
Diffuse white is 203 cd/m² [[!Rec_BT.2100]] .
783
792
<pre>
784
- <span class="swatch" style="--color: white"></span> color( jzazbz 0.22207 -0.00016 -0.00012)
793
+ <span class="swatch" style="--color: white"></span> jzazbz( 0.22207 -0.00016 -0.00012)
785
794
</pre>
786
795
</div>
787
796
<!--
@@ -825,27 +834,29 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
825
834
<div class="example">
826
835
This color represents the sRGB color "lime" in ''Jzazbz''
827
836
<pre>
828
- <span class="swatch" style="--color: lime"></span> color( jzazbz 0.17542 -0.1179 0.1092)
837
+ <span class="swatch" style="--color: lime"></span> jzazbz( 0.17542 -0.1179 0.1092)
829
838
</pre>
830
839
and here is the same color in the polar form
831
840
<pre>
832
- <span class="swatch" style="--color: lime"></span> color( jzczhz 0.17542 0.1614 132.50)
841
+ <span class="swatch" style="--color: lime"></span> jzczhz( 0.17542 0.1614 132.50)
833
842
</pre>
834
843
</div>
835
844
836
845
<h4 id='Jzazbz-to-JzCzHz'>
837
- Converting ''Jzazbz'' colors to ''JzCzHz '' colors</h4>
846
+ Converting ''Jzazbz'' colors to ''JzCzhz '' colors</h4>
838
847
839
- Conversion to ''JzCzHz '' is trivial:
848
+ Conversion to ''JzCzhz '' is trivial:
840
849
841
850
<ol>
842
- <li> Hz = atan2(bz, az) // but convert to degrees!
851
+ <li> hz = atan2(bz, az) // but convert to degrees!
843
852
<li> Cz = sqrt(az^2 + bz^2)
844
853
<li> Jz is the same
845
854
</ol>
855
+
856
+ In addition, practical code should return a ''none'' value if Cz is less than ε.
846
857
847
858
<h4 id='JzCzHz-to-Jzazbz'>
848
- Converting JzCzHz colors to Jzazbz colors</h4>
859
+ Converting JzCzhz colors to Jzazbz colors</h4>
849
860
850
861
Conversion to ''Jzazbz'' is trivial:
851
862
@@ -855,15 +866,20 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
855
866
<li> Jz is the same
856
867
</ol>
857
868
869
+ In addition, practical code should check for a ''none'' value
870
+ for hz.
871
+
872
+
873
+
858
874
<!-- Big Text: color()
859
875
860
- ███▌ ███▌ █▌ ███▌ ████▌ ██ ██
861
- █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█
862
- █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█
863
- █▌ █▌ █▌ █▌ █▌ █▌ ████▌ █▌ ▐█
864
- █▌ █▌ █▌ █▌ █▌ █▌ █▌▐█ █▌ ▐█
865
- █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█ █▌ ▐█
866
- ███▌ ███▌ █████ ███▌ █▌ █▌ ██ ██
876
+ ███▌ ███▌ █▌ ███▌ ████▌ ██ ██
877
+ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█
878
+ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█
879
+ █▌ █▌ █▌ █▌ █▌ █▌ ████▌ █▌ ▐█
880
+ █▌ █▌ █▌ █▌ █▌ █▌ █▌▐█ █▌ ▐█
881
+ █▌ █▌ █▌ █▌ █▌ █▌ █▌ █▌ ▐█ █▌ ▐█
882
+ ███▌ ███▌ █████ ███▌ █▌ █▌ ██ ██
867
883
-->
868
884
869
885
<h2 id="color-function">
@@ -883,13 +899,9 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
883
899
Its syntax is now as follows:
884
900
885
901
<pre class='prod'>
886
- <dfn><colorspace-params></dfn> = [<<custom-params>> | <<predefined-rgb-params>> |
887
- <<predefined-polar-params>> | <<predefined-rectangular-params>> | <<xyz-params>> ]
888
- <dfn><predefined-polar-params></dfn> = jzczhz [ <<number>> | <<percentage>> | none ]{2} [ <<hue>> | none]
889
- <dfn><predefined-rectangular-params></dfn> = <<predefined-rectangular>> [ <<number>> | <<percentage>> | none ]{3}
902
+ <dfn><colorspace-params></dfn> = [<<custom-params>> | <<predefined-rgb-params>> | <<xyz-params>> ]
890
903
<dfn><predefined-rgb></dfn> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 |
891
904
rec2100-pq | rec2100-hlg | rec2100-linear
892
- <dfn><predefined-rectangular></dfn> = jzazbz | ictcp
893
905
</pre>
894
906
895
907
0 commit comments