After experimenting with composite operations and drawing images on the canvas I\'m now trying to remove images and compositing. How do I do this?
I need to clear th
fastest way:
canvas = document.getElementById("canvas"); c = canvas.getContext("2d"); //... some drawing here i = c.createImageData(canvas.width, canvas.height); c.putImageData(i, 0, 0); // clear context by putting empty image data