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