Skip to main content

AnimationCurve.Linear(number timeStart, number valueStart, number timeEnd, number valueEnd)

A straight Line starting at timeStart, valueStart and ending at timeEnd, valueEnd.

Parameters:

NameTypeDescription
timeStartnumberThe start time for the linear curve.
valueStartnumberThe start value for the linear curve.
timeEndnumberThe end time for the linear curve.
valueEndnumberThe end value for the linear curve.

Returns:

typeDescription
AnimationCurveThe linear curve created from the specified values.

Usage

---@type number
local timeStart;

---@type number
local valueStart;

---@type number
local timeEnd;

---@type number
local valueEnd;


local val0 = AnimationCurve:Linear(timeStart, valueStart, timeEnd, valueEnd)