exec('import js\nimport math\nimport time\nc = js.globals.document.createElement("canvas")\njs.globals.document.body.appendChild(c)\nctx = c.getContext("2d")\ndef render():\n ctx.clearRect(0, 0, c.width, c.height)\n t = time.time()\n ctx.fillRect(20+math.sin(t*10)*10, 20+math.cos(t*10)*10, 10, 10)\njs.globals.window.setInterval(render, 20)')