Skip to content
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

Add CSS Rec2020 variant #5

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Add CSS Rec2020 variant #5

merged 1 commit into from
Jun 13, 2024

Conversation

jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Jun 12, 2024

As resolved today-

RESOLVED: Gamut map all device independent color spaces to Rec.2020 for now, transforming from there to device gamut is undefined.

This adds a variant of the CSS algorithm that only maps to rec2020 before clipping to p3. This appears to behave quite similar to the Chromium variant.

Test: https://deploy-preview-5--color-apps.netlify.app/gamut-mapping/gradients

Copy link

netlify bot commented Jun 12, 2024

Deploy Preview for color-apps ready!

Name Link
🔨 Latest commit 28accb4
🔍 Latest deploy log https://app.netlify.com/sites/color-apps/deploys/6669b15b80df960008d3dbdb
😎 Deploy Preview https://deploy-preview-5--color-apps.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jamesnw
Copy link
Contributor Author

jamesnw commented Jun 12, 2024

@LeaVerou Let me know if you want me to add this variant to the Gamut Mapping Playground as well.

@LeaVerou
Copy link
Member

Yes please!

@jamesnw
Copy link
Contributor Author

jamesnw commented Jun 13, 2024

@LeaVerou It looks like nothing further is actually needed, so this variant is on the playground!

https://deploy-preview-5--color-apps.netlify.app/gamut-mapping/?

@LeaVerou LeaVerou merged commit 13d65cb into color-js:main Jun 13, 2024
4 checks passed
@jamesnw jamesnw deleted the css-rec2020 branch June 13, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants