A plugin for SVG.js to convert paths to polygons at a given sample rate