"color value out of range" when using HSV calculations with ColorSequence on Android

There appears to be a floating point problem when calculating color sequence keypoints on Android.

Bug as described here: Might be an engine bug

local RainbowColor = ColorSequence.new({
	ColorSequenceKeypoint.new(0, Color3.fromHSV(1, 1, 1)),
	ColorSequenceKeypoint.new(0.2,	Color3.fromHSV(5 / 6, 1, 1)),
	ColorSequenceKeypoint.new(0.4,	Color3.fromHSV(2 / 3, 1, 1)),
	ColorSequenceKeypoint.new(0.6,	Color3.fromHSV(0.5, 1, 1)),
	ColorSequenceKeypoint.new(0.8,	Color3.fromHSV(1 / 3, 1, 1)),
	ColorSequenceKeypoint.new(1, Color3.fromHSV(1 / 6, 1, 1))
})

Calculation works as expected on my PC:

Returns an error on Android (Huawei P30)

Repo:
ColorSequence.rbxl (39.5 KB)

5 Likes

Tagged this as a studio (rather than engine) bug by mistake. Can’t seem to change it now

Thanks for the report! I filed a ticket in our internal database.

3 Likes

its been 6 months and still not fixed

1 Like