Color management for 2D canvas
Limited availability
The optional colorSpace
parameter of a 2D canvas's getContext()
method chooses the color representation, such as "srgb"
or "display-p3"
.
Learning resources on MDN
Browser support
- Chrome 92 Released on 2021-07-20
- Chrome Android 92 Released on 2021-07-20
- Edge 92 Released on 2021-07-22
- Firefox ❌
- Firefox for Android ❌
- Safari 15.2 Released on 2021-12-13
- Safari on iOS 15.2 Released on 2021-12-13
Baseline availability blocked since December 2021 by Firefox (36 months)
Specifications
- HTML Standard (#concept-canvas-color-space), from HTML Workstream (WHATWG).