static S jsMandelbrotCreateCanvas() { ret [[ // Create Or Get Canvas var myCanvas = document.getElementById("apfelcanvas"); if (myCanvas == null) { myCanvas = document.createElement("canvas"); myCanvas.id = 'apfelcanvas'; myCanvas.width=1280/4; myCanvas.height=720/4; document.body.appendChild(myCanvas); } var ctx = myCanvas.getContext("2d"); ]]; }