The final fill function, rectfill(), is for filling rectangular areas. The form of this function follows: RectFill(&rastPort, xmin, ymin, xmax, ymax); As usual, the rastPort argument specifies the rastport you want to draw into. The xmin and ymin arguments specify the upper left corner of the rectangle to be filled. The xmax and ymax arguments specify the lower right corner of the rectangle to be filled. Note that the variable xmax must be equal to or greater than xmin, and ymax must be equal to or greater than ymin. Rectangle-fill uses fgpen, bgpen, aolpen, drawmode, areaptrn and mask to fill the area you specify. Remember that the fill can be multicolored as well as single- or two-colored. When the DrawMode is complement, it complements all bit planes, rather than only those planes in which the foreground is non-zero.