Path.shiftFractionAlong()

The Path.shiftFractionAlong() returns a point that lies at fraction of the length of the path travelled along the path.

Signature

Javascript
Point path.shiftFractionAlong(float fraction, int stepsPerMm = 25)

The second parameter controls the precision by which the path will be walked. By default, we’ll divide it into 10 steps per mm.

If you don’t need that precision, you can pass a lower number. If you need more precision, you can pass a higher number. For most cases, the default will be fine.

Example

0.2 0.9