Skip to content

Instantly share code, notes, and snippets.

@lmccart
Created January 9, 2015 18:58
Show Gist options
  • Save lmccart/a571c16626b60e13111d to your computer and use it in GitHub Desktop.
Save lmccart/a571c16626b60e13111d to your computer and use it in GitHub Desktop.
grid fragment
var notes = [];
var gridEdge = 40;
function setup() {
createCanvas(400, 400);
stroke(255);
fill(0);
}
function draw() {
background(204);
for (var i=0; i<width; i+=gridEdge) {
for (var j=0; j<height; j+=gridEdge) {
rect(i, j, gridEdge, gridEdge);
}
}
// for (var i=0; i<notes.length; i++) {
// notes.draw();
// notes.update();
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment