Created
January 9, 2015 18:58
-
-
Save lmccart/a571c16626b60e13111d to your computer and use it in GitHub Desktop.
grid fragment
This file contains hidden or 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
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