scttcper / tinycolor

🎨 Color manipulation and conversion

Home Page:https://tinycolor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Saturation (HSV) values not reflected properly

blunteshwar opened this issue · comments

In hsv format the values are in degree , %, % respectively and when we provide color value as hsv(360,1,88), it assumes '1' as '100%'. Apparently for any value x∈[0,1] it converts it in percentage and assumes accordingly.
Thus hsv(360,1,88) is considered as hsv(360,100,88) and there is practically no way to input color values hsv(360,1,88).
The issue can be seen here

The issue can be seen in the attached pictures as well where hsv(360,1,88) is assumed as hsv(360,100,88) but hsv(360,1.0001,88) is correctly rendering color.

Screenshot 2024-04-05 at 4 33 16 PM Screenshot 2024-04-05 at 4 33 31 PM