bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.08k stars 438 forks source link

Integrate LAB Color Space Support #120

Open Horray opened 8 years ago

Horray commented 8 years ago

How can I implement LAB color space in this library?

The conversions can be found at PitPik/ColorPicker/colors.js Line: #548. It may look a bit confusing, but you first have to convert [type]2XYZ, then you can convert from XYZ2LAB.

Will I just have to insert the conversions or is there more to do?

bgrins commented 8 years ago

I'd suggest this fits in best as an extension given an API like in #135