Guide 1 Docs 2 Reference 3

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?) → Color

Parameters

list{ Ink }required
unumberrequired
loopbooleanoptional

Returns

Color

Used in