- From: Isaac Muse via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Sep 2021 19:12:06 +0000
- To: public-css-archive@w3.org
As far as I know, there is no gamut mapping defined in the CSS color spec except clipping, but it seems they might be working towards officially define a better way as this issue seems to suggest that maybe OkLab is a better fit for such gamut mapping: https://github.com/w3c/csswg-drafts/issues/6642. Lab and LCH are not perfect color spaces and seem to have some issues in the blue range and the distance calculation is far more complex. The CSS color authors have a JS app where they sort of test out color stuff, and in their documentation, they talk about gamut mapping via compressing the chroma in the LCH color space: https://colorjs.io/docs/gamut-mapping.html#so-how-does-colorjs-handle-all-this. This gives much more reasonable colors, even if LCH isn't a perfect space. I imagine with Oklch that the results will be even better. -- GitHub Notification of comment by facelessuser Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6668#issuecomment-925234229 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 September 2021 19:12:08 UTC