Lerp
This function performs a linear interpolation between two values. The amount value controls what percent of the start and stop values the returned value consists of.
Syntax
- number Lerp(number start, number stop, number amount)
Parameters
- start: first value.
- stop: second value.
- amount: mix value. If this is 1.0, stop is returned. If this is 0.0, start is returned.
Returns
Returns the interpolated value.