gka / chroma.js

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

Bezier crashes with some color combos #245

Closed bengfarrell closed 2 years ago

bengfarrell commented 3 years ago

Always possible I don't understand this correctly, but even if I don't, Chroma probably shouldn't throw an error

Enter the following colors on https://gka.github.io/palettes/# and watch it crash (open the dev tools):

FFF7FB, #ECE2F0, #D0D1E6, #A6BDDB, #67A9CF, #3690C0, #02818A, #016C59, #014636

Artoria2e5 commented 3 years ago

I think it has something to do with bezier, well, not tolerating more than 5 colors. It should throw an error instead of something this cryptic.