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

Color Input - P3 examples #17

Open
svgeesus opened this issue May 11, 2021 · 1 comment
Open

Color Input - P3 examples #17

svgeesus opened this issue May 11, 2021 · 1 comment

Comments

@svgeesus
Copy link

In the Color input explainer all the examples are restricted to the sRGB gamut.

It would be useful to add an example or two that uses Display P3 for example

ctx.fillStyle = new CSSColor("display-p3", 1, 1, 0, 0.5); // semi-transparent Display P3 primary yellow
@mysteryDate
Copy link
Collaborator

Where is this CSSColor interface in the spec? Currently on chrome:

ctx.fillStyle = "color(display-p3 1 1 0 / 0.5)";

Works fine, but CSSColor is not defined.

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

No branches or pull requests

2 participants