Skip to content

Instantly share code, notes, and snippets.

@gaffer-93
Created October 9, 2017 12:03
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 gaffer-93/b5fa525bd2d2bb447b413c445427a7da to your computer and use it in GitHub Desktop.
Save gaffer-93/b5fa525bd2d2bb447b413c445427a7da to your computer and use it in GitHub Desktop.
void draw()
{
size(500, 500);
x = 0;
y = 0;
w = 10;
h = 10;
for (int i = 5; i <= 45; i = i + 5) {
x = i;
y = y + i * 2;
w = w + i * 2;
rect(x, y, w, h);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment