Skip to content

Instantly share code, notes, and snippets.

Created May 10, 2013 05:54
Show Gist options
  • Save anonymous/5552642 to your computer and use it in GitHub Desktop.
Save anonymous/5552642 to your computer and use it in GitHub Desktop.
Gist from mistakes.io
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