Previous Up Next

12.10.3  General polygons in the plane: polygon

See section 13.9.3 for general polygons in space.

The polygon command takes as argument a sequence or list of points.

polygon returns and draws the polygon with the given vertices.
Input:

polygon(-1,-1+i/2,i,1+i,-i)

Output:

Input:

polygon(makelist(x->exp(i*pi*x/3),0,5,1))

Output:


Previous Up Next