Skip to content

ColorCurve

Type

ColorCurve is an immutable curve of Color values from time 0 to 1, created with ColorCurve.new or ColorCurve.linear.

Example

-- Server script.
local fade = ColorCurve.linear(Color.White, Color.Transparent)
print(#fade.Points) -- prints 2

Points

Field
Points: { ColorCurvePoint }

Points is an array of the 2 to 8 { Time, Color } point tables in time order.