Created
September 23, 2018 15:14
-
-
Save wonderburg7/acc186e5d5fbe900e1d6523168d7e626 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
int littledistance = 200; | |
int bigdistance = int(littledistance*1.618); | |
void setup() { | |
size(1000, 1000); | |
smooth(); | |
background(108); | |
} | |
void draw() { | |
stroke(255); | |
fill(0); | |
translate(width/2, height/2); | |
beginShape(); | |
vertex(-bigdistance, 0); | |
vertex(0, -littledistance); | |
vertex(bigdistance, 0); | |
vertex(0, littledistance); | |
vertex(-bigdistance, 0); | |
endShape(); | |
beginShape(); | |
vertex(-bigdistance, 0); | |
vertex(0, -littledistance*2); | |
vertex(bigdistance, 0); | |
vertex(0, littledistance); | |
vertex(-bigdistance, 0); | |
endShape(); | |
beginShape(); | |
endShape(); | |
} | |
/* | |
fill(72); | |
beginShape(); | |
vertex(-bigdistance, 0); | |
vertex(0, -littledistance); | |
vertex(bigdistance, 0); | |
vertex(0, littledistance); | |
vertex(-bigdistance, 0); | |
endShape(); | |
beginShape(); | |
vertex(-height, -height); | |
vertex(height, -height); | |
vertex(height, height); | |
vertex(-height, height); | |
vertex(-height, -height); | |
endShape(); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment