Function of color
color.gradient
The colour u (0 to 1) of the way along the list; with loop, u wraps and the last colour runs back into the first.
color.gradient(list: { Ink }, u: number, loop: boolean?) → ColorParameters
Returns
ColorUsed in
color.gradient({ "gold", colors.white, "#3366ff" }, u) -- the colour u (0..1) of the way along the listVectors and colourscolor.gradient(list, u, true) -- a loop: u wraps, and the last colour runs back into the firstVectors and coloursfunction(_, i, n, t) return { color = color.gradient(list, (i - 1) / n - t * speed, true) } endText formatting