Created
October 23, 2020 09:07
-
-
Save anandology/9232ae138e994df1b85f46af35b94559 to your computer and use it in GitHub Desktop.
grid function
This file contains 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
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