Created
May 10, 2013 05:54
-
-
Save anonymous/5552642 to your computer and use it in GitHub Desktop.
Gist from mistakes.io
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 pre = '<pre>*</pre>'; | |
var txt = ''; | |
var chars = ' xx xxx 0000000000005550'; | |
window.setInterval(function() { | |
var txt = ''; | |
var c = chars.split(''); | |
chars = c[c.length] + c.slice(0, -1); | |
for (var x = 0; x < 30; x++) { | |
for (var y = 0; y < 60; y++) { | |
txt += chars[Math.floor( | |
Math.sqrt(Math.pow(x - 14, 2) + Math.pow((y/2) - 14, 2)) * (10/8))]; | |
} | |
txt += '\n'; | |
} | |
document.getElementsByClassName('right')[0].innerHTML = pre.replace('*', txt); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment