Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2017 00:46
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 anonymous/e7df0a8869de3443fa5aec8215960172 to your computer and use it in GitHub Desktop.
Save anonymous/e7df0a8869de3443fa5aec8215960172 to your computer and use it in GitHub Desktop.
// Personal Instructions
//rainbow squares, always changing colours.
void rect1(int across, int down) {
stroke(random(255), random(255), random(255));
fill(random(255), random(255), random(255));
beginShape();
vertex(across,down);
vertex(across+30, down);
vertex(across+30, down+30);
vertex(across, down+30);
endShape(CLOSE);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment