Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created August 18, 2013 04:59
Show Gist options
  • Save erikvold/6259973 to your computer and use it in GitHub Desktop.
Save erikvold/6259973 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head></head>
<body>
<canvas id="mycanvas" width="1" height="1"></canvas>
<script type="text/javascript">
var canvas = document.getElementById('mycanvas');
alert(canvas.toDataURL());
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment