Function DrawPolygon

DrawPolygon(Xs, Ys)
The function draws a filled polygon using arrays of x and y coordinates. By default the color of polygon is white. Example:
Xs[1] = 100
Xs[2] = 200
Xs[3] = 300
Xs[4] = 200
Xs[5] = 100

Ys[1] = 100
Ys[2] = 100
Ys[3] = 200
Ys[4] = 300
Ys[5] = 200

DrawPolygon (Xs, Ys)
This is how result would look like (red coordinates are just for reference):

See also: