gka / chroma.js

JavaScript library for all kinds of color manipulations
https://gka.github.io/chroma.js/
Other
10.13k stars 545 forks source link

Add weights to color distance and clamp hue difference to -180 to +180 degrees #323

Closed lulunac27a closed 8 months ago

lulunac27a commented 8 months ago

Added weights to color distance as an array of items and clamp hue difference between two colors to -180 to 180 degrees (the closest one), not -360 to 360 degrees