Call Box Commands
Version 2.0 15 Jan-90


CALL RE the RECTANGLE commands

There are 5 commands that draw rectangles. The rectangles are drawn with the pen in the current port.

Note: Any command that draws something, draws to a graphics port. You must make sure that the port you want to draw in is the current port before drawing to it. Because you are drawing to a port and not necessarily the screen, the coordinates used to draw are in a coordinate system unique to the port you have selected. This coordinate system is Called LOCAL. GLOBAL coordinates on the other hand refer to the screen coordinates... or the current cursor position. If you choose to draw to the screen then the LOCAL coordinates will equal the GLOBAL coordinates.

COMMAND FUNCTION DESCRIPTION
CALL RE,O,X,Y,W,H FRAME RECTANGLE: draws a rectangle outline in the current pen color.
CALL RE,1,X,Y,W,H PAINT RECTANGLE: draws a rectangle and fills it with the current pen color.
CALL RE,2,X,Y,W,H ERASE RECTANGLE: draws a rectangle and fills it with color 0.
CALL RE,3,X,Y,W,H INVERT RECTANGLE: draws a rectangle and inverts the pixels colors.
CALL RE,4,X,Y,W,H,P FILL RECTANGLE: draws a rectangle and fills it with the current pen pattern.


X
Left edge of the rectangle in LOCAL coordinates.

Y
Top edge of the rectangle in LOCAL coordinates.

W
Width of the rectangle in pixels.

H
Height of the rectangle in pixels.

P
Pattern used to fill rectangle (0-15)


Figure 2.12
Figure 2.12 Rectangle construction