colorjs / color-space

Math & data behind color spaces and color conversions.
http://colorjs.github.io/color-space
The Unlicense
323 stars 25 forks source link

TypeError: space.lab.lch is not a function #54

Open tschaub opened 1 year ago

tschaub commented 1 year ago

The readme suggests that space.lab.lch is a function: https://github.com/colorjs/color-space/blob/9687f77a0c95cdf37bba7ef7aa0fb35237446472/README.md?plain=1#L13-L16

However, running this throws TypeError: space.lab.lch is not a function.

Should this be space.lab.lchab instead?

dy commented 1 year ago

You're right, that's lchab. But it needs certain rework - the list of spaces must be updated to at least include modern CSS spaces #51