Proposed investigation: Wide Gamut 2D Graphics using HTML Canvas #51
Closed
KaliedaRik
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Results of investigationInitialise Canvas
React to user interaction
Actions arising
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Inspired by this Webkit blog article of the same name
2D canvas elements are capable of supporting two color spaces:
srgb
(the default), anddisplay-p3
. Setting a canvas element's color space happens at the time the we invoke the canvas element's.getContext('2d', {...})
function.The article includes some code to feature detect whether a browser, and the current screen on which the browser window is being displayed, support the p3 color space.
Proposal:
addCanvas({...})
function. Default must be to create the canvas context with thesrgb
color space.Beta Was this translation helpful? Give feedback.
All reactions