home *** CD-ROM | disk | FTP | other *** search
- /* function to draw a polygon (set of lines) from 2 arrays of pts. */
- /* it will be drawn using absolute coordinates */
-
- abs_poly(x,y,sides,close,color)
- int *x; /* pointer to array of x coordinates */
- int *y; /* pointer to array of y coordinates */
- int sides; /* number of sides */
- int close; /* 0 - don't close the polygon, 1 - close it */
- int color; /* color of shape */
- {
- eg_polygon(x,y,sides,close,color,0,0,1);
- }
-
-
-
-