public
Created

An HTML/Javascript implementation of the Matrix falling code in as few bytes as possible.

  • Download Gist
minMatrixAnim.js
JavaScript
1 2 3 4 5 6 7 8 9
/*
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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.