markusn / color-diff

Implemets the CIEDE2000 color difference algorithm, conversion between RGB and lab color and mapping all colors in palette X to the closest color in palette Y based on the CIEDE2000 difference.
Other
359 stars 30 forks source link

Expose diff function #11

Closed testerez closed 7 years ago

testerez commented 7 years ago

It would be interesting to expose the diff function so we can get the difference between two colors.

markusn commented 7 years ago

Hi! It is exposed as diff (maps to the ciede2000 function)

testerez commented 7 years ago

https://github.com/markusn/color-diff/blob/master/lib/index.js#L9 Yes I missed that... Thanks!