Skip to content

Commit

Permalink
[css-color-4] Optimize-out un-needed steps in gma
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Nov 22, 2023
1 parent 99001d4 commit 0674822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions css-color-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5477,15 +5477,16 @@ Sample Pseudocode for the Binary Search Gamut Mapping Algorithm with Local MINDE
<li>set |clipped| to clip(|current|)</li>
<li>set |E| to delta(|clipped|, |current|)</li>
<li>if |E| < |JND|
<ol>
return |clipped| as the gamut mapped color
<!-- <ol>
<li>if (|JND| - |E| < |epsilon|) return |clipped| as the gamut mapped color</li>
<li>otherwise,
<ol>
<li>set |min_inGamut| to false</li>
<li>set |min| to |chroma|</li>
</ol>
</li>
</ol>
</ol> -->
</li>
<li>otherwise, set |max| to |chroma| and continue to repeat these steps</li>
</ol>
Expand Down

0 comments on commit 0674822

Please sign in to comment.