Skip to content

Instantly share code, notes, and snippets.

@zamfi
Created September 3, 2021 23:52
Show Gist options
  • Save zamfi/a1d6ee5559a76e82670c0c0c2f3ea0ab to your computer and use it in GitHub Desktop.
Save zamfi/a1d6ee5559a76e82670c0c0c2f3ea0ab to your computer and use it in GitHub Desktop.
for (var x = 10; x < width; x += 20) {
if (x < width/2) {
line(x, 10, x, height/2);
} else {
line(x, height-10, x, height/2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment