I have a UI that shows a bunch of colors and runs color:ToHex()
on them for testing purposes. This works fine on my machine, a Windows 11 PC with an Intel i7-9700K CPU, but for a lot of our players it gives the following error:
Unable to convert color to valid hex code
In the following place I copy the colors that we were showing and run ToHex()
on all of them and report if they fail:
The colors are as follows:
Color3.fromHSV(0, 0, 0),
Color3.fromHSV(0, 0.6, 1),
Color3.fromHSV(40 / 360, 0.6, 1),
Color3.fromHSV(60 / 360, 0.6, 1),
Color3.fromHSV(120 / 360, 0.6, 1),
Color3.fromHSV(200 / 360, 0.6, 1),
Color3.fromHSV(240 / 360, 0.6, 1),
Color3.fromHSV(280 / 360, 0.6, 1),
Color3.fromHSV(300 / 360, 0.6, 1),
Color3.new(1, 1, 1),
My Samsung Galaxy S20 reports that color 9 (Color3.fromHSV(300 / 360, 0.6, 1)
) fails.