Created
May 24, 2016 14:18
-
-
Save marisusis/b0833aa0947e6cc58cf52de807c72cf2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 AsciiImage = (function() { | |
var image = document.createElement('image'); | |
var canvas = document.createElemnt('canvas'); | |
var ctx = canvas.getContext('2d'); | |
return function (url) { | |
image.src = url; | |
ctx.drawImage(image,0,0); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment