lerp(value1, value2, amt)
Calculates a number between two numbers at a specific increment. The amt
parameter is the amount to interpolate between the two values where 0.0
is equal to the first point, 0.1
is very near the first point, 0.5
is half-way in between, etc. The lerp function is convenient for creating motion along a straight path and for drawing dotted lines.
Type: function
Parameter(s):
- value1 {Number}:
First value.
- value2 {Number}:
Second value.
- amt {Number}:
Amount between 0.0 and 1.0.
Returns:
-
{Number}:
The mapped value.