I have the following code:
canvas = document.createElement('canvas')
context = canvas.getContext('2d')
canvas.width = window.innerWidth
canvas.height = 100
After some tries with composite operations and drawing images on the canvas I'm now trying to remove images and compositing. How can I do this?
I need to clear ...
Is it possible to capture or print what's displayed in an html canvas as an image or pdf?
I'd like to generate an image via canvas, and be able to generate a png ...