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

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

From: Jacob Rus via GitHub <sysbot+gh@w3.org>
Date: Sun, 06 Dec 2020 00:03:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-739433348-1607212985-sysbot+gh@w3.org>
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

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