Log inGet started

ColorSequence

The ColorSequence namespace — the engine's Luau API reference for ColorSequence.

The ColorSequence namespace — 2 functions.

globals/ColorSequence/deserialize

globals/ColorSequence/deserialize(data: any) -> ColorSequenceObj

Rebuild a ColorSequence from a {kind = "ColorSequence", keypoints = {...}} payload produced by :serialize(). Used by scene save/load.

globals/ColorSequence/new

globals/ColorSequence/new(...: any) -> ColorSequenceObj

Construct a ColorSequence from one of three signatures: a constant color (3-array {r,g,b} or {r=,g=,b=} record), a two-point lerp from c0 to c1, or a keypoints array. envelope is optional and may be a single number (broadcast across channels) or a 3-array. Up to 64 keypoints; the first must anchor at time = 0, the last at time = 1. NaN / Inf rejected.

  • api
  • reference