-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color Widget's HSV mode doesn't update the hue properly when saturation is 0. #76968
Comments
Slider colors are taken directly from the picker's color, not from other sliders. Hue is undefined if saturation is 0. |
However, the hue seems to reset back to red when saturation is put to 0... I personally wouldn't want the hue value to change. Edit: it seems to do this when the value slider is set to 0 is updated and the saturation is 0... |
I wanna see if I could tackle this one cuz it looks kinda funky. 😎 |
I can also reproduce the "calling |
So just as @KoBeWi mentioned, hue is undefined when saturation is 0. In code, this is reflected when the colors are being converted. When a color is converted, internally the following happens:
I'm struggling to think of an adequate solution for this... would it be best to cache the hue in |
If we are going to cache the hue, it's better to do in color picker. |
Godot version
4.0.2
System information
Ubuntu 22.04.1 LTS
Issue description
Notice how the hue is on the blue color, but the saturation is insists on remaining red.
If I change the saturation a little bit, the correct value will apply. But if I adjust the value or the alpha, the blue hue will be punched out and become red again.
Steps to reproduce
Go to a ColorPicker in the editor (say, the modulate property of Node2D), open the color picker, and copy the above configuration in the HSV tab.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: