Skip to content

Instantly share code, notes, and snippets.

@williwambu
Last active September 3, 2018 07:28
Show Gist options
  • Save williwambu/416496d34ab9216caeff973f533bfea1 to your computer and use it in GitHub Desktop.
Save williwambu/416496d34ab9216caeff973f533bfea1 to your computer and use it in GitHub Desktop.
/**
* Get x,y coordinates at a given distance along the path
* @param {number} distance Distance along the path
* @returns {SVGPoint} x,y coordinate
*/
const point = path.getPointAtLength(distance);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment