1. A quad is a quadrilateral, a four sided polygon. quad(x1, y1, x2, y2, x3, y3, x4, y4)
  2. A rectangle is a quad with angle between the edges constrained ninety degrees rect(x, y, width, height)
  3. Its a plane connecting 3 points triangle(x1, y1, x2, y2, x3, y3);
size(500, 375);
smooth();
background(255, 204, 0);
quad(10, 10, 480, 20, 360, 360, 20, 350)
fill(200,0,0)
rect(30, 30, 300, 300)
fill(0,0,200)
triangle(100, 100, 200, 100, 200, 160)