Skip to content

Instantly share code, notes, and snippets.

@rockarts
Created October 5, 2018 04:16
Show Gist options
  • Save rockarts/b3c3ddb73ca37c957e7ca2eaa03bd7d8 to your computer and use it in GitHub Desktop.
Save rockarts/b3c3ddb73ca37c957e7ca2eaa03bd7d8 to your computer and use it in GitHub Desktop.
var step = 20;
for(var x = 0; x < size; x += step) {
for(var y = 0; y < size; y+= step) {
draw(x, y, step, step);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment