Re: [csswg-drafts] [css-color-4] Define gamut mapping (#5191)

One more thing:

If you want to always have correct results for mapping into RGB gamut, one thing you can do is take your curve (either a line pointed toward gray along constant hue/lightness or some other curve) and intersect it with all of the six surfaces R = 0, R = 1, G = 0, G = 1, B = 0, B = 1, and then choose the distal intersection among those 6 which still satisfies 0≤R≤1, 0≤G≤1, 0≤B≤1.

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


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

Received on Sunday, 6 December 2020 00:03:08 UTC