Skip to content

Instantly share code, notes, and snippets.

@wonderburg7
Created September 23, 2018 15:14
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 wonderburg7/acc186e5d5fbe900e1d6523168d7e626 to your computer and use it in GitHub Desktop.
Save wonderburg7/acc186e5d5fbe900e1d6523168d7e626 to your computer and use it in GitHub Desktop.
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