shape = {
const shape = svg`<path d="${snake}">`;
document.body.append(shape);
const l = shape.getTotalLength();
const di = l / Math.floor(l) / 2;
const points = [];
for (let i = 0; i < l; i += di) {
const { x, y } = shape.getPointAtLength(i);
points.push([x, y]);
}
points.push(points[0]);
shape.remove();
return flubber.toCircle(d3.line()(points), 11, 11, 10);
}