Ellipse Path SVG
const ellipse = (cx, cy, rx, ry) => {
if (ry == null) ry = rx;
return `
M${cx-rx} ${cy}a${rx} ${ry}
0 1 0 ${rx*2} 0a${rx},${ry}
0 1 0 -${rx*2},0`
}
const svg = `
<svg style="overflow:hidden;stroke:black;fill:none">
<path d="${ellipse(80, 50, 30)}" />
<path d="${ellipse(80, 120, 60, 20)}" />
<path d="${ellipse(150, 60, 20, 40)}" />
</svg>`
document.body.innerHTML = svg;
Draw an ellipse inside an svg path. I saw this method over on this stackoverflow thread at some point and tweaked it a little bit. Very nice simple solution from user yogi