Created
June 17, 2018 14:51
-
-
Save gkucmierz/681c085643f075ae4c527f0b5ea2658a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var canvas = document.getElementsByTagName("canvas")[0]; | |
var img = canvas.toDataURL("image/png"); | |
document.write('<img src="'+img+'"/>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment