Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.