Returns a relative point between two points.
interpolate(0.5, { x:0, y:0 }, { x:10, y:10 }); // Halfway { x, y } Copy
interpolate(0.5, { x:0, y:0 }, { x:10, y:10 }); // Halfway { x, y }
Alias for Lines.interpolate(amount, a, b);
If you find yourself calling interpolate repeatedly with the same points, consider using interpolator to create a function that bakes in the points.
interpolate
Relative amount, 0-1
If true, length of line can be exceeded for amount of below 0 and above 1.
amount
1
Point Point
Returns a relative point between two points.
Alias for Lines.interpolate(amount, a, b);
If you find yourself calling
interpolaterepeatedly with the same points, consider using interpolator to create a function that bakes in the points.