lerp

fun lerp(start: Color, end: Color, t: Double, result: Color): Color(source)

Computes the linear interpolation or extrapolation at t between the provided colors.

Return

The modified result parameter.

Parameters

start

The color corresponding to t at 0.0.

end

The color corresponding to t at 1.0.

t

The point along t at which to interpolate.

result

The object onto which to store the result.

See also