Color API proposal review

Hello,

Lea Verou and I have been working on a proposal for a Color API for the 
Web Platform, to be used in various places in the Web Platform where 
color input, output or manipulation is required.

The functionality of this proposal is informed by experience using CSS 
Color 4, and API experience with color.js (https://colorjs.io). It is 
intended to be directly usable with the Canvas HDR proposal 
(https://github.com/w3c/ColorWeb-CG/blob/master/hdr_html_canvas_element.md) 
and the supported color spaces are the union of those in CSS Color 4 and 
in that proposal.

The API is still at an early stage, but we'd love some feedback on it.

README that will eventually evolve into an explainer:Â 
https://github.com/LeaVerou/color-api/blob/main/README.md 
<https://github.com/LeaVerou/color-api>
Draft spec:Â https://projects.verou.me/color-api/
<https://projects.verou.me/color-api/>GitHub repo for issues: 
https://github.com/LeaVerou/color-api/issues
<https://projects.verou.me/color-api/>

A lot of it has been inspired from experience with our Color.js work, 
but the API shape is designed to be more suited to a /native /object, 
whereas the API of Color.js is more suited to a /library/. They 
definitely share similarities however, and it should be trivial to 
polyfill this via Color.js.

Useful feedback could include (but is not limited to):
- Use cases that the API should cover
- Applicability to CSS, Canvas, etc
- General comments of the proposed API shape

-- 
Chris Lilley
@svgeesus
Technical Director @ W3C
W3C Strategy Team, Core Web Design
W3C Architecture & Technology Team, Core Web & Media

Received on Monday, 24 May 2021 10:35:08 UTC