bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.08k stars 438 forks source link

RGBA hex #33

Closed marcandre closed 10 years ago

marcandre commented 10 years ago

The doc gives this example: tinycolor("#88f0f0f6"), but it doesn't work:

tinycolor("#88f0f0f6").toRgb() # => {a: 1, b: 0, g: 0, r:0}
bgrins commented 10 years ago

Hmm that should be working. What version of the library are you using?

marcandre commented 10 years ago

See here: http://bgrins.github.io/spectrum/ I believe the last release version, at least that's what it says in the source:

// TinyColor v0.9.16.
bgrins commented 10 years ago

Oops, looks like I hadn't bumped TinyColor after adding that feature. Thanks for reporting! Should be working now if you download latest spectrum.

Committed here: https://github.com/bgrins/spectrum/commit/ae5bc78fd3aeba075a29f9047e06d28ed7064083.