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

Allow lowercase RGB objects as input #17

Closed evelynhathaway closed 4 years ago

evelynhathaway commented 5 years ago

Many libraries (tinycolor for instance) and codebases use {r, g, b} objects to represent RGB colors instead of the currently supported {R, G, B}.

Would be open to a PR adding support for the lowercase keys?

markusn commented 4 years ago

@evelynhathaway yes! do a PR and I'll merge it, I missed this issue for some reason

evelynhathaway commented 4 years ago

Added a PR based on master