W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

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

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 Jun 2020 23:42:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-639898935-1591400553-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:27 UTC