gka / chroma.js

JavaScript library for all kinds of color manipulations
https://vis4.net/chromajs/
Other
9.94k stars 543 forks source link

OKLCH support in `css()` #325

Open oskarkrawczyk opened 5 months ago

oskarkrawczyk commented 5 months ago

Right now the css() method only supports two modes of generating a CSS string, rgb and hsl – would it be possible to provide additional types, like oklch?

regorxxx commented 5 months ago

See this https://github.com/gka/chroma.js/issues/321

oskarkrawczyk commented 5 months ago

See this https://github.com/gka/chroma.js/issues/321

Thanks, I had a look but it seems the CSS method still only supports three modes of output: hex, rgb, hsl.

regorxxx commented 5 months ago

I'm just pointing you to open issues to maintained forks, not here.

regorxxx commented 5 months ago

Have updated the methods to support it.

oskarkrawczyk commented 5 months ago

@regorxxx wow, that's really great! I'm switching to your fork