Re: [csswg-drafts] [css-color-4] Channel clipping breaks author expectations, especially when using 'perceptually uniform' spaces (#9449)

> It assumes a P3 target gamut, but could be easily customized to support sRGB too or any other bounded RGB space.

Such as the RGB space of the actual display. The important thing is that the scaling to get rid of >1 and < 0 values is done in linear-light space, so the relative proportions of the three primaries are preserved.

The two-stage Scale LH is using the first Scale just to estimate the chroma of the gamut boundary; given that optimal point the second Scale operation (with original L and H substituted back in) gives a very nice result.

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


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

Received on Wednesday, 14 February 2024 13:12:57 UTC