regorxxx / chroma.js

JavaScript library for all kinds of color manipulations
https://regorxxx.github.io/chroma.js/
Other
4 stars 2 forks source link

Add hue difference that clamps from -180 degrees to 180 degrees (shortest path) and add weighted color difference #8

Closed lulunac27a closed 7 months ago

lulunac27a commented 7 months ago

I added hue difference that clamps from -180 degrees to 180 degrees (not -360 degrees to 360 degrees) and added weighted color difference.

regorxxx commented 7 months ago

Added a few changes to make it easier to maintain on the future. Thanks for the improvements :)

regorxxx commented 7 months ago

Thanks for noticing the typo