Skip to content

Instantly share code, notes, and snippets.

@jvavrik
jvavrik / thematrix
Created April 4, 2013 13:51
The matrix
//<canvas id=canvas>
//original source : http://timelessname.com/sandbox/matrix.html
//set the canvas to take the entire screen
canvas.height = window.screen.height;
canvas.width = window.screen.width;
//one entry in the array per column of text
//each value represent the current y position of the column. (in canvas 0 is at the top and positive y values go downward)
var columns = []
for (i = 0; i < 256; columns[i++] = 1);