Skip to content

Instantly share code, notes, and snippets.

@tmcw
Forked from anonymous/index.js
Created May 10, 2013 05:54
Show Gist options
  • Save tmcw/5552644 to your computer and use it in GitHub Desktop.
Save tmcw/5552644 to your computer and use it in GitHub Desktop.
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