-
-
Save tmcw/5552644 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 pre = '<pre>*</pre>'; | |
var txt = ''; | |
var chars = ' xx xxx 0000000000005550'; | |
window.setInterval(function() { | |
var txt = ''; | |
var c = chars.split(''); | |
var l = c.pop(); | |
chars = [l].concat(c).join('') | |
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