⚠️ This site is under development, some artefacts may be missing or incomplete.
PIXEL UI
LerpColor

LerpColor

Color PIXEL.LerpColor( number t, Color from, Color to )

Description

Performs linear interpolation (opens in a new tab) between two colors.

Arguments

number t

The fraction representing the progress of the interpolation.

Color from

The color to start from.

Color to

The color to end with.

Returns

Color

The result of the linear interpolation.


Color:Lerp

Color Color:Lerp( number t, Color to )

Description

Performs linear interpolation (opens in a new tab) starting from the color the method was called on.

Arguments

number t

The fraction representing the progress of the interpolation.

Color to

The color to end with.

Returns

Color

The color the method was called on.