Get started with 2D graphics by drawing a polygon.
Run the code to draw a polygon. Try other coordinate values:
Draw a polygon with vertices at coordinate positions {0,0}, {2,0}, and {0,1}:
Turn on axes so you can see the coordinate values:
Draw a house shape. Try drawing other shapes:
Get particular shapes by choosing appropriate coordinate values:
It may help to turn on the axes:
Make it red. Try other colors, like Orange or Green:
Make the polygon red. Enclose the color and polygon in a list (indicated by the curly braces):