gka / chroma.js

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

Got hue value `NaN` from chroma('#000000').oklch() #322

Open leadream opened 6 months ago

leadream commented 6 months ago

image

regorxxx commented 5 months ago

See this https://github.com/gka/chroma.js/issues/321 Read the docs, it's intended that colors with no hue should return NaN.

On the updated repo there is a way to change this behavior.