ColorSequenceKeypoint

Overview

An element that constitutes a single keypoint in a ColorSequence, defining both the time value corresponding to a specific point and the color to be applied at that point. These values are sequentially connected to form the overall color change flow of a ColorSequence.

Constructors

new

Creates a new ColorSequenceKeypoint by combining the provided time value and color value. The created keypoint represents a specific position within the ColorSequence and contains the color information to be applied at that point.

Parameters

number Time

Specifies the time value where the keypoint will be positioned within the ColorSequence. Values typically use a range from 0 to 1, representing the relative position within the sequence.

Color3 color

Defines the color to be applied at the specified time value.

Return

ColorSequenceKeyPoint

A newly created ColorSequenceKeypoint with the provided time value and color value.

Code Samples

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

Properties

Time

number

A value representing where the keypoint is placed within the ColorSequence, using a range from 0 to 1 to define the position between start and end.

Code Samples

Value

Color3

The value representing the color to be applied at the keypoint.

Code Samples

Methods

Last updated