Created
March 18, 2013 15:49
-
-
Save nsa-yoda/5188166 to your computer and use it in GitHub Desktop.
An HTML/Javascript implementation of the Matrix falling code in as few bytes as possible.
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
/* | |
Original web post: http://timelessname.com/sandbox/matrix_orig.html | |
Updated web post: http://timelessname.com/sandbox/matrix.html | |
Reddit post where code is whittled down: http://www.reddit.com/r/programming/comments/1ag0c3/someone_posted_an_htmljavascript_implementation/ | |
*/ | |
<body style=margin:0 onload="for(s=window.screen,w=q.width=s.width,h=q.height=s.height,m=Math.random,p=[],i=0;i<256;p[i++]=1);setInterval('9Style=\'rgba(0,0,0,.05)\'9Rect(0,0,w,h)9Style=\'#0F0\';p.map(function(v,i){9Text(String.fromCharCode(3e4+m()*33),i*10,v);p[i]=v>758+m()*1e4?0:v+10})'.split(9).join(';q.getContext(\'2d\').fill'),33)"><canvas id=q> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment