ColorSequenceKeypoint

Constructors

NameDescription
new(time: number,color: Color3)Returns a ColorSequenceKeypoint with the given time (0 to 1) and Color3 value, for use inside a ColorSequence.

Code Snippet

local keypoints = {
    ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
    ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 0)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 255)),
}

local trail = Instance.new("Trail")
trail.Color = ColorSequence.new(keypoints)

Properties

NameTypeDescription
TimenumberThe relative position of the keypoint within its parent ColorSequence, from 0 (the beginning of the sequence) to 1 (the end).
ValueColor3The Color3 value at this keypoint's position. Each color component (red, green, blue) must be between 0 and 1.