The draw-rectangle and draw-rectangles functions draw hollow or filled outlines of the specified rectangle or rectangles as if a five-point polyline were specified for each rectangle, as follows:
[x,y,] [x+width,y] [x+width,y+height] [x,y+height] [x,y]
draw-rectangle and draw-rectangles use the following graphics context components: background, function, plane-mask, foreground, subwindow-mode, cap-style, clip-x, clip-y, clip-ordering, clip-region and clip-mask, dash-list, dash-offset, fill-style, join-style, line-width, line-style, stipple, tile, ts-x-origin, and ts-y-origin.
|draw-rectangle||drawable gcontext x y width height &optional fill-p||Function|
Draws a rectangle defined by the x, y, width, and height arguments.
|draw-rectangles||drawable gcontext rectangles &optional fill-p||Function|
Draws the rectangles in the order listed in rectangles. For the specified rectangle or rectangles, no pixel is drawn more than once. The x and y coordinates of each rectangle are relative to the destination origin and define the upper left corner of the rectangle. If rectangles intersect, the intersecting pixels are drawn multiple times.