Drawing a Polygon
POLYGON COORDS%[] [, style%=1]
This function draws a polygon to the screen. The coordinates are read from COORDS. The first element in COORDS gives the amount of coordinate pairs, each two following elements give the x- and y-coordinates. The optional parameter style contains attributes and line type (several attributes can be combined):
style | Attribute |
100 | closed polygon |
000 | open polygon |
1 | black lines |
2 | white lines |
4 | dotted lines |
5 | inverted lines |
|