bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

get the tinycolor's constructor #543

Open Garry-Gu opened 5 years ago

Garry-Gu commented 5 years ago

When I used $(dom).spectrum('set', rgbaColorString) assignment, I found that Alpha did not display correctly. I see the source code using tinycolor can be correctly assigned, and tinycolor is quite easy to use. I was going to get the constructor for $(dom).spectrum('get').constructor, but found that the protype was overridden. Why not put out the constructor for tinycolor?