David Briscoe
7d99a08134
[Breaking] color: Convert hue [0,359] -> [0,1]
imgui [uses 0-1 for everything internally](
https://github.com/ocornut/imgui/blob/master/imgui.cpp#L2045).
[Both Unity](https://docs.unity3d.com/ScriptReference/Color.RGBToHSV.html)
[and Godot](https://docs.godotengine.org/en/stable/classes/class_color.html#class-color-property-h)
use H, S, and V in the range 0.0 to 1.0
Since we're switching colours out of 0,255 we should also switch hue out
of 0,359. Now all of our r,g,b,a,h,s,v values are all in 0,1.
2022-04-01 21:55:40 -07:00
..
2022-03-27 09:56:15 -07:00
2022-03-26 23:33:13 -07:00
2020-05-03 13:00:22 -04:00
2020-05-03 12:46:30 -04:00
2019-04-23 09:30:44 -07:00
2022-04-01 21:55:40 -07:00
2016-08-21 20:42:44 -07:00
2019-04-22 22:21:48 -03:00
2022-03-27 09:56:15 -07:00
2016-12-15 04:34:46 -04:00
2016-12-15 04:34:46 -04:00
2022-03-27 09:56:15 -07:00
2016-12-15 04:34:46 -04:00
2022-03-26 23:33:13 -07:00
2022-03-31 06:05:54 -07:00
2022-03-27 09:56:15 -07:00