bgrins / TinyColor

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

HSV/B support for H=360 as value (don't change it to 0) #168

Open UXDart opened 6 years ago

UXDart commented 6 years ago

Is there anyway to allow to keep the value 360 for H in HSV? Photoshop, Sketch... allows to set 360 as value... and keep the 360, without changing it to 0. is it possible to keep 360 if I send that value? Thanks

UXDart commented 6 years ago

the reason for this is that H is 0-100% inclusive, so 0 and 360 are valid values... as it is 100%... I understand that is the same color, but the user used 360, not 0... I'm not sure how to keep that in my app if it is not possible to support it on tinycolor... TIA