ColorSequenceKeypoint

Overview

Description

The ColorSequenceKeyPoint object represents a single key point in a ColorSequence. It is used to define a color at a specific time which can be used in animations or transitions.

Properties

Time

number Describes the time (in seconds or a normalized value ranging from 0 to 1) at which the color is defined in the sequence.

Code Samples

local Time = 0.5
local KeyPoint = ColorSequenceKeypoint.new(Time, Color3.fromRGB(255, 0, 0))
print(KeyPoint.Time) 

Value

Color3 Describes the color represented at this particular Time in the color sequence.

Code Samples

local Time = 0.5
local Color = Color3.fromRGB(255, 0, 0)
local KeyPoint = ColorSequenceKeypoint.new(Time, Color)
print(keyPoint.Value) 

Constructors

new

Creates a new ColorSequenceKeyPoint.

Parameters

number Time

The time value for the key point in the sequence.

Color3 color

The color value at the specified time.

Return

ColorSequenceKeyPoint

An instance of the ColorSequenceKeyPoint with the specified properties.

Code Samples

local Time = 0.5
local Color = Color3.new(255, 0, 0)
local KeyPoint = ColorSequenceKeypoint.new(Time, Color)

Methods

ColorSequenceKeyPoint does not have any additional methods beyond its constructors and properties.

Last updated