What is a polygon? Well, triangles, squares, octagons and hexagons are all polygons - shapes with some number of corners. In a polygon, each corner or turn is called a vertex.
You need to begin the shape, use vertexes each time you change direction and end shape. The first vertex is also the last vertex which closes the shape.
Write a program to draw a beautiful polygon like one of the ones above. Below is a program I wrote to draw a diamond. Be sure to fill your polygon with color.
Diamond
size(400,400);
background(255,255,255);
fill(100,255,0);
strokeWeight(4);
beginShape();
vertex(100,200);
vertex(200,100);
vertex(300,200);
vertex(200,300);
vertex(100,200);
endShape();
And here is the resulting image