Re: [csswg-drafts] [css-color-4] Disagreements over gamut mapping (#7610)

As simple per-coordinate clip has been mentioned, I am reminded of a [canvas GMA example](https://svgees.us/Color/ok-clip-lch-explorer.html) I put together which compares 

1. the CSS Color 4 GMA (OKLCH reduction in C, deltaEOK, with local MINDE)
2. clip, and 
3. the current color.js GMA (CIE LCH with reduction in C, deltaE2000). 

A constant-lightness plane of the OKLCH space is mapped to sRGB using the three methods.

![image](https://user-images.githubusercontent.com/2506926/185439240-22484b56-34ba-4be6-9445-b9006b76360b.png)

Significant shifts in both hue and lightness are seen with clip. In other words, the gamut mapped color is a poor representation of the original, oog color.

_Now that we have `display-p3` canvas, I should probably make a version that maps to display-p3._


-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7610#issuecomment-1219663823 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 18 August 2022 15:56:25 UTC