How can I save every few seconds a canvas Image to a Folder.
I have a Basic canvas drawing function and a download function to save the image like this:
<canvas></canvas>
var link = document.createElement('a');
link.innerHTML = 'download image';
link.addEventListener('click', function(ev) {
link.href = canvas.toDataURL();
link.download = "mypainting.png";
}, false);
document.body.appendChild(link);
I want to implemente a button named start / stop.
If the user clicks on that button I want to save every second the canvas Image.
Every Image shall be saved as a new file.
How would this be possible? Is it even possible?