home *** CD-ROM | disk | FTP | other *** search
- polyfill(x,y,sides,nh,b_color,f_color,type)
- int *x; /* pointer to array of column coordinates */
- int *y; /* pointer to array of row coordinates */
- int sides; /* number of sides */
- int nh; /* number of hatches */
- int b_color; /* boundary color of polygon */
- int f_color; /* fill color of polygon */
- int type; /* absolute or relative */
- {
- if (nh > 0)
- eg_polygon(x,y,sides,1,b_color,3,f_color,type);
- else
- if (nh == -1)
- eg_polygon(x,y,sides,1,b_color,1,f_color,type);
- else
- eg_polygon(x,y,sides,1,b_color,2,f_color,type);
- }
-