Skip to content

Instantly share code, notes, and snippets.

@anandology
Created October 23, 2020 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anandology/9232ae138e994df1b85f46af35b94559 to your computer and use it in GitHub Desktop.
Save anandology/9232ae138e994df1b85f46af35b94559 to your computer and use it in GitHub Desktop.
grid function
function grid() {
push();
noFill();
stroke(200);
for (var x=0; x<width; x+=50) {
line(x, 0, x, height);
}
for (var y=0; y<height; y+=50) {
line(0, y, width, y);
}
pop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment