fserb / canvas2D

Update Canvas 2D API
Other
151 stars 25 forks source link

Color Input - P3 examples #17

Open svgeesus opened 3 years ago

svgeesus commented 3 years ago

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 commented 1 year ago

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.