Is it possible to capture or print what's displayed in an HTML canvas as an image or pdf?
I want to generate an image via canvas, and be able to create a png from ...
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 ...
I have the following code:
canvas = document.createElement('canvas')
context = canvas.getContext('2d')
canvas.width = window.innerWidth
canvas.height = 100