windowjs / windowjs

Window.js is an open-source Javascript runtime for desktop graphics programming.

Home Page:https://windowjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support all of the CSS color formats

joaodasilva opened this issue · comments

Properties like canvas.fillStyle can be set to CSS color values:

https://windowjs.org/doc/canvas#canvas.fillStyle

However, a lot of the valid CSS color values aren't supported:

https://developer.mozilla.org/en-US/docs/Web/CSS/color_value

For example: HSL, lab, using system color names, etc.

This should be added to src/css.cc in CSSColorToSkColor.