wonderburg7
9/23/2018 - 3:14 PM

diamond not working.pde

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();
*/