HTBasic Help
×
Menu
Index

RECTANGLE

Draws and optionally fills and edges rectangles.
 
 RECTANGLE width,height [,FILL] [,EDGE]
 
 
 
Usage:
RECTANGLE 10,25
RECTANGLE 8,-10,FILL,EDGE
Example: RECTANGLE.BAS
Description:
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 current AREA color and edged with the current PEN color and LINE TYPE. If neither are specified, EDGE is assumed.
The PIVOT and PDIR statements affect the RECTANGLE statement.
See Also: