home *** CD-ROM | disk | FTP | other *** search
-
- /* function to draw a color box from an lower right corner position */
- grbxlrc(x,y,side,color)
- int x; /* x coordinate of lower right corner of box */
- int y; /* y coordinate of lower right corner of box */
- int side; /* length of side of box */
- int color; /* foreground color of line */
- {
- 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 - side + 1;
- y1 = y - side + 1;
- x2 = x;
- y2 = y;
-
- /* call box fill routine */
- eg_rectangle(x1,y1,x2,y2,color,1,-1);
- return(0);
- }