Roblox Wiki
Advertisement
Roblox Wiki

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 light iconBeam dark iconBeamParticleEmitter light iconParticleEmitter dark iconParticleEmitter, Trail light iconTrail dark iconTrail, and UIGradient light iconUIGradient dark iconUIGradient.

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.

External links[]


Advertisement