gka / chroma.js

JavaScript library for all kinds of color manipulations
https://gka.github.io/chroma.js/
Other
10.21k stars 547 forks source link

Docs: Bounds of LCH #85

Closed hastebrot closed 7 years ago

hastebrot commented 9 years ago

The docs state (http://gka.github.io/chroma.js/#chroma-lch):

chroma.lch

L: Lightness, c: chroma (0-1), h: hue (0-1).

chroma.lch(80, 40, 130);
chroma(80, 40, 130, 'lch');

But it seems that hue must be in 0..360 (instead of 0..1), and lightness and chroma in 0..100 (instead of 0..1).

gka commented 7 years ago

fixed