A rectangle is a polygon described by its width and height displacement from the current pen position.
The signs of the width and height determine the position of the rectangle relative to the current pen position. If the width is positive, the pen position is on a left corner of the rectangle. If the width is negative, the pen position is on a right corner of the rectangle. If the height is positive, the pen position is on a lower corner of the rectangle. And if the height is negative, the pen position is on an upper corner.
The rectangle can be filled with the currentAREAcolor and edged with the currentPENcolor andLINE TYPE. If neither are specified,EDGEis assumed.