/* 6.914 Example 0.5 You can make rectangles by giving start coordinates (x1, y1) plus a width and a height. rect(x1, y1, width, height); You can make ellipses by giving center coordinates (x1, y1), plus a width and a height. ellipse(x1, y1, width, height); You can make triangles by giving the coordinates (x, y) of each vertex. triangle(x1, y1, x2, y2, x3, y3); */ void setup(){ size(500, 500); // window of size 500 x 500 background(150, 150, 80); // green/brown background smooth(); // recommended for making your shapes smoother // however, this makes render time longer } void draw(){ strokeWeight(3); // making outlines visible //rectangles stroke(200); // light grey outline rect(100, 40, 70, 90); // tall rectangle stroke(100); // dark grey outline rect(200, 40, 90, 70); // wide rectangle stroke(0); // black outline rect(300, 40, 70, 70); // square //ellipses stroke(0, 255, 0); // bright green outline ellipse(100, 250, 50, 80); // tall ellipse stroke(0, 155, 0); // dark green outline ellipse(200, 250, 80, 50); // tall ellipse stroke(0, 75, 0); // very dark green outline ellipse(300, 250, 50, 50); // circle //triangles stroke(255, 0, 0); // bright red outline triangle(100, 325, 75, 400, 125, 400); // tall triangle stroke(155, 0, 0); // dark red outline triangle(200, 350, 150, 400, 250, 400); // wide triangle stroke(75, 0, 0); // very dark red outline triangle(300, 350, 275, 400, 325, 400); // approx. equilateral triangle }