Created
August 31, 2017 00:46
-
-
Save anonymous/e7df0a8869de3443fa5aec8215960172 to your computer and use it in GitHub Desktop.
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
// 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