OWBasic for Pocketviewer

Home INTRO Group GRAPHIC Alphabetical Index

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):
styleAttribute
100closed polygon
000open polygon
1black lines
2white lines
4dotted lines
5inverted lines

Home INTRO Group GRAPHIC Alphabetical Index