lerp

fun lerp(other: Color, factor: Float): Color

Creates a linear interpolated color between this color and another color.

Return

A new Color instance interpolated between the two

Parameters

other

The other color to interpolate

factor

The factor of the interpolation (0.0-1.0)