Hi there I have a question about dynamically creating a canvas using javascript.
I create a canvas like this:
var canvas = document.createElement(\'c
Use element .innerHTML= which is quite fast in modern browsers
.innerHTML=
document.body.innerHTML = ""; // TEST var ctx = CursorLayer.getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(100, 100, 50, 50);
canvas { border: 1px solid black }