3 ms·
I love this idea, but I'm almost always using canvas with a bunch of click/hover handlers. If I export as a PNG I lose the ability to make things interactive. I
by drags 16y ago
I love this idea, but I'm almost always using canvas with a bunch of click/hover handlers. If I export as a PNG I lose the ability to make things interactive. Is there any way to couple the performance advantages of server-side processing canvas with the interactivity you get through the native implementations?
- grayrest 16y agoI get the feeling I'm missing something, but... var ctx = document.getElementById('canvas').getContext('2d'); var img = new Image(); img.onload = function(){ ctx.drawImage(img,0,0); } img.src = 'path/to/the/nodejs/generated/image.png';