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