Re: [csswg-drafts] [css-color-5] When mixing hue, there are two ways round the hue range (#4735)

> I suggest gamut mapping should happen before interpolation. This is because we wish to avoid multiple mapping stages, so it should happen as late as possible and ideally, once.

I'm not so sure. Given that in CSS gamut mapping has to be per-color and not perceptually for a whole image, doing gamut mapping late means you can get bands of near solid color and general perceptual non-uniformity, even in perceptually uniform spaces.
OTOH, even if we do gamut mapping prior to interpolation, it doesn't guarantee that all intermediate colors will be in gamut, especially for polar spaces like LCH.

In any case, gamut mapping should probably be a separate issue. AFAIK we are not defining this at all right now and browsers just clip to 0-100% in current color formats.

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

Received on Friday, 5 June 2020 23:42:35 UTC