Specifications

Revision C 16/01/96
Chapter 9 "HP-GL" 23
RR - Fill Rectangle Relative
RR X, Y[;]
X ; X coordinate of opposite angle for the rectangle
Y ; Y coordinate of opposite angle for the rectangle
Coordinates are relative to the current position in user units or graphics units.
Fill in the rectangle formed by the current position and the opposite angle specified by X and Y.
After plotting the cursor returns to its point of origin.
Plotting is performed whether the pen is up or down.
When scaling has been performed, the rectangle is plotted in user units.
Also, when scaling has been performed, the values for X and Y are real numbers.
When there is no scaling, the rectangle is plotted in graphics units.
When there is no scaling, the coordinate values for X and Y are integer numbers.
C
urrent position
Fill pattern specified by FT an
d P
Y increment
X increment
10 '*** PREX ***
20 LPRINT "IN;SP1;PA5000,5000;"
30 LPRINT "PT.3;FT1;RR500,500;"
35 LPRINT "PR500,0;"
40 LPRINT "FT3,70;RR500,500;"
45 LPRINT "PR0,500;"
50 LPRINT "FT2;RR500,500;"
60 LPRINT "FT4,70,45;RR-500,500;"
70 END
<Sample 73>