10/10/03

(X1, Y1)

(Xn, Yn

(X2,Y2)

Current position

(X3, Y3)

10 '*** PAEX1 ***

20 LPRINT "IN;SP1;"

30 LPRINT "PA2000,6000;PD0,6000,2000,7500,2000,6000;PU2500,6000;"

40 LPRINT "PAPD4500,6000,2500,7500,2500,6000;PU10365,500;"

50END <Sample 62>

10 ' *** PAEX2 ***

20 LPRINT "IN;SP1;SC0,100,0,100;"

30 LPRINT "PA50,30;PD25,30,50,50,50,30;PU55,30;"

40 LPRINT "PAPD80,30,55,50,55,30,PU;"

50END <Sample 63>

PR - Relative coordinate pen move

PR [X, Y [,...]] [;]

X ; X coordinate of the cursor movement destination

Y ; Y coordinate of the cursor movement destination

Coordinates are relative to the current position in user units or graphics units.

Plots a straight line only when the pen is down.

When scaling has been performed, the cursor is moved by relative coordinates in user units.

Also, when scaling has been performed, the values for X and Y are real numbers.

When there is no scaling, the cursor is moved by relative coordinates in graphics units.

When there is no scaling, the coordinate values for X and Y are integer numbers.

X1

Y2

Y

Y3

Current position

X3

10 ' *** prex 1 ***

20 LPRINT "IN;SP1;"

30LPRINT "PA5000,4500,;PDPR-2000,0,2000,2000,0,-2000;PU500,0;"

40LPRINT "PD2000,0,-2000,2000,0,-2000;PU;"

50END

<Sample 64>

CHAPTER 9 HP-GL - 10

Page 322
Image 322
Homelite HL-1450, HL-P2500, HL-1660E, HL-2400CE, HL-1050, HL-1250, HL-1470N, HL-1070, 2060, HL-1270N manual 10 *** PAEX1