bgrins / TinyColor

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

Preserve input case #63

Closed le717 closed 10 years ago

le717 commented 10 years ago

Could you add the ability to preserve the case of the input value when toString() is called? For (an highly simplistic and silly) example, if I run tinycolor("RGB(39, 39, 39)") though TinyColor then call toString() in it without converting it, I get rgb(39, 39, 39) in return. I'm trying to implement an uppercase-lowercase converter in a program I can't change much of that uses TinyColor, and the always-lowercase return is making it a bit difficult.