I made a script which can smoothly go from one colour to another and display it with parts.
https://gyazo.com/17813170705c174b97cf7862459f357f
wait(1)
local group = Instance.new("Model", workspace)
group.Name = "gradient"
local start = Color3.new(0,0,0)
local End = Color3.new(0,1,0)
local size = 100
for x=1, size, 1 do
wait()
for y=1, size, 1 do
local point = Instance.new("Part")
point.Anchored = true
point.Size = Vector3.new(.1,.1,.1)
point.Position = Vector3.new(x/10, 1, y/10)
point.Color = start:lerp(End, x/size)
point.CanCollide = false
point.Name = (x .. ":" .. y)
point.Parent = group
end
end
How can I make this smoothly go through all the colours of the rainbow rather than just 2 colours?
