{
const width = 900
const height = 500
const canvas = html`<canvas width = ${width} height = ${height} style = "border:1px solid black"/>`
const ctx = canvas.getContext("2d")
let frame = 0
function loop(){
ctx.clearRect(0,0,900,500)
ctx.save()
ctx.beginPath()
ctx.fillStyle = "blue"
ctx.strokeStyle = "red"
ctx.arc(coordsMod[frame+1].x,coordsMod[frame+1].y,20,0,2*Math.PI)
ctx.fill()
ctx.closePath()
ctx.restore()
if(frame < 865){
frame = frame + 1
window.requestAnimationFrame(loop)
}
}
loop()
return canvas
}