Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const points = [];
- const numPoints = 1024;
- for (let i = 0; i < numPoints; i++) {
- const { x, y } = path.getPointAtLength(i * length / (numPoints - 1));
- points.push([x, y]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement