sm.color.lerp

Linearly interpolates between two colors

Kind: Function

Environments: Game, Terrain

Game

sm.color.lerp( color1, color2, t )

Open the full Game reference

Parameters:

Name Type Description
color1 Color The first color.
color2 Color The second color.
t number Interpolation amount between the two inputs.

Returns:

Type Description
Color Interpolated color.

Terrain

sm.color.lerp( color1, color2, t )

Open the full Terrain reference

Parameters:

Name Type Description
color1 Color The first color.
color2 Color The second color.
t number Interpolation amount between the two inputs.

Returns:

Type Description
Color Interpolated color.