gka / chroma.js

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

Brighten/Darken/Alpha methods returning `1` #205

Open jtag05 opened 5 years ago

jtag05 commented 5 years ago

I upgraded to 2.0.2 and started receiving an error that darken().hex() was not a function. I traced it down to the fact that darken() is now returning 1 instead of a Color

gka commented 5 years ago

can you please post a full code example? all my .darken().hex() tests are passing