Advertisement
Guest User

Untitled

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