ColorSeries¶
Inherits ?
Color series is a data type that represents a collection of color and points, also known as gradient.
Not newable
This object cannot be created by scripts using Instance.New().
Properties¶
PointCount : number¶
Returns the point count of this color series
Methods¶
New → ColorSeries¶
Parameters: ``
Create color series by this color range
New → ColorSeries¶
Create color series by this color range
SetColor → nil¶
Sets the color at the specified point in the color series.
RemovePoint → nil¶
Parameters: point [ number ]
Removes the point at the specified index from the color series.
SetOffset → nil¶
Parameters
point [ number ]
offset [ number ]
Sets the offset at the specified point in the color series.
GetColor → Color¶
Parameters: point [ number ]
Gets the color at the specified point in the color series.
GetOffset → number¶
Parameters: point [ number ]
Gets the offset at the specified point in the color series.
Lerp → Color¶
Parameters: t [ number ]
Interpolates between colors in the series based on the parameter t.