3 ms·
Would it be possible to use this to render the current state of a canvas to the console? That's something I'd find very useful for debugging. Edit 1: Looks lik
by flgr 13y ago
Would it be possible to use this to render the current state of a canvas to the console? That's something I'd find very useful for debugging.
Edit 1: Looks like they build the memes exactly that way. It still needs to convert the canvas to a data: url first, however, which might be a bit slow?
Edit 2: Looks like there might be a better, but non-standard and non-portable way of achieving that in WebKit browsers: http://updates.html5rocks.com/2012/12/Canvas-driven-background-images http://updates.html5rocks.com/2012/12/Canvas-driven-backgrou...
- deleted 13y ago[deleted]
- deleted 13y ago[deleted]
- ycitm 13y agoLooks like it: `console.image(canvas.toDataURL());`
- FWeinb 13y agoTo bad that it is not working with a background canvas. http://codepen.io/FWeinb/pen/0378ed8ad8a56f4f989ed8085baf5cdc http://codepen.io/FWeinb/pen/0378ed8ad8a56f4f989ed8085baf5cd...
- adriancooney 13y agoCheck out a new sister project! https://github.com/dunxrion/console.snapshot https://github.com/dunxrion/console.snapshot