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)