Re: [csswg-drafts] [css-color-4] Clamping of color values (#3845)

> where to describe the relative-colorimetric-style handling of out of gamut values (currently per-component clipping, which is awful; better to do C reduction to the gamut boundary in LCH, which preserves perceptual Hue and Lightness.

I'm not sure if you've seen [this discussion](https://github.com/d3/d3-color/issues/33), but reducing C in an out-of-gamut LCH color is not always amenable to the bisection method, due to the weird shape around yellows. The solution may require a pre-computed lookup table or something to that effect.

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

Received on Monday, 6 April 2020 15:20:39 UTC