The ColorSequence data type represents a color gradient. Each color is interpolated via individual RGB values. ColorSequence can be constructed from Color3 values or from keypoints, and is mostly used in effect classes such as Beam, ParticleEmitter, Trail, and UIGradient.
Constructors[]
- ColorSequence.new(Color3 c)
- This function creates a sequence of two keypoints with c for each value.
- ColorSequence.new(Color3 c0, Color3 c1)
- This function creates a sequence of two keypoints with c0 as the start value and c1 as the end value.
- ColorSequence.new(table keypoints)
- This function creates a sequence of ColorSequenceKeypoints.
Properties[]
- table ColorSequence.Keypoints
- An array containing ColorSequenceKeypoint values for the ColorSequence.
Referenced by[]
External links[]
Basic Lua types | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Roblox types |
| ||||||||||||||||||||||||||
API reference only |