1. Computer executes the command from top to bottom
  2. It overwrites one shape over other
  3. Hence it drwas a quad, then a rectange and then a triangle
size(500, 375);
smooth();
background(255, 204, 0);
fill(0,200,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)