You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afaik the hue should be between 0 and 360 so -60 is wrong. I'd expect to get 300 in this case, which happen to be equal to -60 % 360. So maybe a fix could look like this:
in the ChunkyPNG::Color#hue_and_chroma
hue=hue.between?(0,360) ? hue : hue % 360
The text was updated successfully, but these errors were encountered:
Hi,
i believe that the
ChunkyPNG::Color.to_hsl
method returns a wrong hue for certain colours.Example:
Afaik the hue should be between 0 and 360 so -60 is wrong. I'd expect to get 300 in this case, which happen to be equal to
-60 % 360
. So maybe a fix could look like this:in the
ChunkyPNG::Color#hue_and_chroma
The text was updated successfully, but these errors were encountered: