/*Exercise 2. Recreate El Lissitzky's composition of Proun G7 Though I 
thought that choosing this portion might prove to be difficult, I wanted 
to attempt it as a challenge.*/


size (400,400);

background(222,215,215);
smooth();

//left side upside down triangle
fill (180,163,115);
noStroke();
triangle (0.5, 0.5, 48.833, 0.5, 0.5, 177.5);

//orange upside down L shape on top
fill (131, 69, 17);
noStroke();
quad (178, 0.5, 145.25, 118.25, 118.25, 84.25, 141.5, 0.5);
quad (172, 0.5, 267.75, 0.5, 267, 3.25, 171, 14.5);

//gray triangle underneath orange L on top
fill(209, 203, 198);
triangle (173, 16.5, 266.167, 4.167, 238.5, 105.167);

//brown upside down V upper right hand side
fill(33, 17, 9);
noStroke();
quad (268.5, 0.5, 291.833, 0.5, 253.5, 130.833, 237.5, 105.833);
quad (291.833, 0.5, 345.5, 0.5, 400, 83, 383.834, 133.25);
triangle (400, 79.833, 400, 129.167, 383.834, 131.833);

//biege triangle upper right hand corner
fill (180, 163, 115);
triangle (400, 0.5, 345.5, 0.5, 400, 83);

//beige shape underneath upside down brown V and pattern
quad (274.966, 100.029, 355.389, 90.505, 383.432, 130.717, 262.796, 142.886);
triangle (355.389, 90.505, 313.062, 95.796, 326.817, 49.235);

//pattern quad
fill (160, 158, 158);
quad (274.966, 100.029, 299.833, 12.198, 326.817, 49.765, 313.062, 95.796 );

//red quad mid page on right
fill (58, 25, 25);
quad (333.167, 156.5, 400, 150.167, 400, 181.167, 354.5, 187.5);

//triangle adjacent to red quad mentioned above
fill (168, 159, 115);
triangle (335.5, 159.833, 354.4, 186.167, 327.5, 188.5);

//quad below triangle mentioned above
fill (221, 212, 177);
quad (354.167, 187.167, 327.167, 189.167, 315.167, 228.5, 336.167, 261.167);

//brownish red quad nearing center of page
fill (33, 17, 9);
quad (253.5, 130.167, 269.834, 153.167, 202.167, 200.167, 187.833, 178.5);

//brownish/biege triangle to the left of the quad mentioned above
fill (175,159,105);
triangle (145, 119, 237.25, 105.75, 172.23, 156.75);

//quad between biege triangle and brownish red quad
fill (61, 44, 44);
quad (172, 157.25, 186.25, 179.25, 102, 241.75, 86.75, 218.5);

//darkish brown shape under orage upside down L
fill (130, 119, 100);
quad (120.75, 87.75, 166.5, 149.75, 81.75, 211.5, 38.5, 148.25);
quad (100.5, 237.5, 38.682, 148.25, 0.682, 176, 64, 266.5);

//triangle hugging left side
fill (33, 17, 9);
triangle (0.5, 176, 16.25, 199, 0.5, 211.25);

stroke(1);
strokeWeight (1.5);
line (145, 119, 237, 105);
line (276, 99, 315, 94);
line (315, 94, 326.5, 48.5);

strokeWeight (.25);
line ( 175, 15, 237, 105);

//quad above and to the right of the red line
fill(214, 205, 205);
quad(103, 242, 187.5, 179, 202.5, 201.5, 118.5, 262.5);
quad(200.5, 200.5, 270.5, 152.5, 315.5, 227.5, 250.5, 274.5);

//last brownish/redish quad bottom center
noStroke();
fill (33, 17, 9);
quad (157.833, 224.5, 172.833, 230.167, 118.167, 400, 102.833, 400);

//object under line with 3 pt size
fill (130, 119, 100);
quad (130.833, 359.167, 172.167, 225.5, 202.167, 203.5, 252.833, 274.167);

stroke(1);
strokeWeight (3);
line (203.833, 203.167, 169.167, 228.167);

noStroke();
//red half square
fill (109,8,8);
quad (64, 265.334, 67.5, 270.167, 103.333, 242.334, 99.5, 237.834);
quad (98.833, 243.334, 102.333, 240.501, 118.667, 262.001, 115.5, 265.001);

//triangle under red
fill (239,234,234);
triangle (70, 269.667, 101, 246.667, 87, 295.834);

//orange quad on bottom
fill (131, 69, 17);
quad (22.5, 400, 63, 263.25, 83.5, 292.5, 55, 400);

stroke (1);
strokeWeight (.75);
line (99, 246.5, 53, 400);

save ("blah.jpeg");

Exercise 02: Recreate part of an El Lissitzky proun