Skip to content

Api > AnimationCurve > EaseInOut()


AnimationCurve.EaseInOut(number timeStart, number valueStart, number timeEnd, number valueEnd)⚓︎

Creates an ease-in and out curve starting at timeStart, valueStart and ending at timeEnd, valueEnd.

Parameters:⚓︎

Name Type Description
timeStart number The start time for the ease curve.
valueStart number The start value for the ease curve.
timeEnd number The end time for the ease curve.
valueEnd number The end value for the ease curve.

Returns:⚓︎

type Description
AnimationCurve The ease-in and out curve generated from the specified values.

Usage⚓︎

---@type number
local timeStart;

---@type number
local valueStart;

---@type number
local timeEnd;

---@type number
local valueEnd;


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