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