A color stop in a Gradient, defined by its position in the range [0, 1] and
the color at that position.
Fields
position
Position of the stop along the gradient, where 0 is the start and 1 is
the end.
local g = Gradient.linear(Vector.xy(0, 0), Vector.xy(100, 0), { { position = 0, color = Color.rgb(255, 0, 0) }, { position = 1, color = Color.rgb(0, 0, 255) },})
local g = Gradient.linear(Vector.xy(0, 0), Vector.xy(100, 0), { { position = 0, color = Color.rgb(255, 0, 0) }, { position = 1, color = Color.rgb(0, 0, 255) },})