color-js / apps

A collection of color tools
https://apps.colorjs.io
MIT License
16 stars 3 forks source link

Add CSS Rec2020 variant #5

Closed jamesnw closed 3 months ago

jamesnw commented 3 months ago

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

netlify[bot] commented 3 months ago

Deploy Preview for color-apps ready!

Name Link
Latest commit 28accb4f32d8a23872d9677af9f85d4b09d8eda8
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 commented 3 months ago

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

LeaVerou commented 3 months ago

Yes please!

jamesnw commented 3 months ago

@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/?