Skip to main content

Color.LerpUnclamped(Color a, Color b, number t )

Linearly interpolates between colors a and b by t.

Parameters:

NameTypeDescription
aColorColor a
bColorColor b
tnumbernumber t

Returns:

typeDescription
Colorinterpolated Color

Usage

---@type Color
local a;

---@type Color
local b;

---@type number
local t ;


local val0 = Color:LerpUnclamped(a, b, t )

Extra Detail

When t is 0 returns a. When t is 1 returns b.