home *** CD-ROM | disk | FTP | other *** search
- /* function to draw a color box from an upper left corner position */
- grbxulc(x,y,side,color)
- int x; /* x coordinate of upper left corner of box */
- int y; /* y coordinate of upper left corner of box */
- int side; /* length of side of box */
- int color; /* foreground color of line */
- {
-
- int x1; /* x coordinate of lower right */
- int y1; /* y coordinate of lower right */
-
- /* set lower right corner */
- x1 = x + side - 1;
- y1 = y + side - 1;
-
- /* call box fill routine */
- eg_rectangle(x,y,x1,y1,color,1,-1);
- return(0);
- }