Re: [csswg-drafts] [css-color-4] CSS gamut mapping algorithm clarifications (#7653)

Umm @danburzo, do you mind adding the geometric (formerly "analytical") solutions of BjO to the comparison too? I have ham-fistedly translated his code to TS at https://gist.github.com/Artoria2e5/9c7ba0bcda480b5bc2ae0b0ffe0bfb91 for a use-and-throw-away color-picking job; you can probably do a lot better with the `multiplyMatrices` function already found in the Newton thing.

It's not cool to talk about a geometric solution existing without ever showing an example of it, IMO. Sure this one's got very strong dependence on the shape of sRGB in particular (I have not tried modifying `oklab_srgb_gamut_approximation` for P3 yet), but... at least we can figure out whether the result is more desirable.

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


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

Received on Wednesday, 5 June 2024 05:47:33 UTC