avp / spectra

A Javascript color library. Quickly manipulate and convert colors.
avp.github.io/spectra
MIT License
237 stars 18 forks source link

Outputs NaN hex string with some colors #24

Closed ghost closed 10 years ago

ghost commented 10 years ago

It doesn't work correctly with some colors e.g.

Spectra("red").lighten(5).hex(); // "#ff1aaN"
// or
Spectra("#fff").lighten(10).hex(); // "#aNaNaN"
// black color in any form of input fails too

Same output in all latest browsers.

avp commented 10 years ago

Should be fixed in 6ae7ba0cfdf7ef2be3256790ae253194f6ea18c3