Position of the stop along the gradient, where 0 is the start and 1 is
the end.
Copy
Ask AI
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) },})