-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement CSS Color 4 gamut mapping #154
Comments
Does not just affect GM single colors, but also affects smoothness of gradients, see this awful example |
On So the chroma is vastly reduced but the hue is very similar. |
Exploring the CIE Lab L=50 plane over a,b = -125 to +125 I am struck by the OKLab a value in the -125,-125 corner: lab(50% 125 125) = oklab(60.58% 0.357 0.152) |
(TIL that screenshots of Canvas elements on my WCG screen look nothing like the actual screen) |
Live versions: |
@svgeesus - We are looking to use Color.js to implement CSS Color 4 logic (conversions, gamut, etc) for Sass in the If there isn't anything blocking, are there parts that we could help implement here in Color.js? |
Closed by #352 |
Currently, gamut mapping tries to allow any coordinate in any color space to be reduced (including nonsensical ones like hue) and uses deltaE 2000 as a color distance metric.
See also this codepen and this demo
The text was updated successfully, but these errors were encountered: