Homelite HL-2400CE, HL-P2500, HL-1660E, HL-1450, HL-1050, HL-1250 RA Fill rectangle absolute, Ra X, Y

Models: HL-1250 HL-1270N HL-1470N 2400C HL-1050 HL-P2500 2060 HL-1660E HL-1070 HL-1450 HL-2400CE

1 431
Download 431 pages 8 Kb
Page 167
Image 167

10/10/03

r specifies the radius of the circle. A positive value for r places the 0° reference point onto the positive x- axis and a negative value for r places the 0° reference point onto the negative x-axis.

The value for q1 is a clamped real number.

qc

q1

current 0° reference p

position r

q1 specifies the wedge starting point relative to the 0 degree reference point.

When q1 is positive, the positive direction of the X axis relative to the current position is set at 0 degrees and the start point is sought in the counterclockwise direction. The opposite occurs when q1 is negative: the negative X axis is set at 0 degrees and the start point is sought by going clockwise.

qc specifies the angle of the wedge in degrees.

The value for qc is a clamped real number.

Plotting proceeds counterclockwise when qc is positive and clockwise when negative.

The value for qd must be an integer from -32,768 to +32,767.

When qd is not specified, the chord angle is the default value ( 5 degrees )

10'- Edge Wedge -

20WIDTH "LPT1:", 255

30LPRINT CHR$(27); "E";

40LPRINT CHR$(27); "%0B";

50LPRINT "IN;SP1;"

60LPRINT "PA2000,5000;"

70LPRINT "EW1250,90,180,5;"

80LPRINT "EW1250,270,120;"

90LPRINT "EW1250,30,60;"

100LPRINT CHR$(27); "%0A";

110LPRINT CHR$(27); "E";

120END

<Sample 33>

RA - Fill rectangle absolute

RA X, Y[;]

X ; X coordinate of opposite corner for the rectangle

Y ; Y coordinate of opposite corner for the rectangle

X and Y coordinates are absolute coordinates in current units.

Fill the rectangle formed by the current position and the opposite corner 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.

10 ' - Fill Absolute Rectangle -

20 WIDTH "LPT1:", 255

30 LPRINT CHR$(27); "E";

40 LPRINT CHR$(27); "%0B";

50 LPRINT "IN;SP1;PA5000,4000;"

60 LPRINT "FT1;RA4250,3250;"

70 LPRINT "FT3,100;RA5750,3250;"

80 LPRINT "FT2;RA5750,4750;"

CHAPTER 4 HP-GL/2 - 27

Page 167
Image 167
Homelite HL-2400CE, HL-P2500, HL-1660E, HL-1450, HL-1050, HL-1250, HL-1470N, HL-1070, 2060 RA Fill rectangle absolute, Ra X, Y