chroma.js icon indicating copy to clipboard operation
chroma.js copied to clipboard

Brighten/Darken/Alpha methods returning `1`

Open jtag05 opened this issue 7 years ago • 1 comments

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

jtag05 avatar Dec 19 '18 06:12 jtag05

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

gka avatar Feb 16 '19 23:02 gka