block by rveciana 77655c3c0e3073c19da34af6dc84c4b9

Canvas & svg-path-properties Point-Along-Path Interpolation

Full Screen

Canvas version of this block by Mike Bostock, using the svg-path-properties library

This example demonstrates how to use the getTotalLength and getPointAtLength methods on SVG path elements using the svg-path-properties library to interpolate a point along a Catmull–Rom spline.

index.html

path-properties.min.js