Homelite HL-1050, HL-P2500, HL-1660E, 2400C FP Fill polygon, Specifies Non-zero winding fill method

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 169
Image 169

10/10/03

10 ' - Fill Wedge -

20 WIDTH "LPT1:", 255

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

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

50 LPRINT "IN;SP2;FT3,100;"

60 LPRINT "PA2000,5000;"

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

80 LPRINT "SP3;EW1250,90,180,5;"

90 LPRINT "SP4;FT4,100,45;"

100 LPRINT "WG1250,270,120;"

110 LPRINT "SP3;EW1250,270,120;"

120 LPRINT "SP1;FT1;"

130 LPRINT "WG1250,30,60;"

140 LPRINT "SP3;EW1250,30,60;"

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

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

170END

<Sample 36>

FP - Fill polygon

FP [;]

FP [ n ] [;] n ; fill method

This command fills the polygon currently stored in the polygon buffer.

The command does not clear the buffer or alter the data at all.

The command fills between points defined when the pen was up or down.

• If a polygon is composed of sub-polygons, the command fills alternate areas.

On completion of the plot the cursor returns to the original position.

The command performs a fill irrespective of whether the pen is currently up or down.

You can specify the fill method. There are two types of fill method.

0 specifies the even/odd fill method.

Places a point within the polygon and draws a straight line from it to the outside of polygon. If the cross point of the straight line and polygon edges are an odd count, the polygon which includes the start point is filled.

*

* *

1time

2 times

1 specifies Non-zero winding fill method.

10'- Fill Polygon -

20WIDTH "LPT1:",255

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

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

50LPRINT "IN;SP1;";

60LPRINT "PA1500,1500;PM0;CI1000,60;PM1;"

70LPRINT "CI500;PM1;PM2;"

80LPRINT "LT4;FT3,50,45;"

90LPRINT "FP;"

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

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

120END

<Sample 37>

CHAPTER 4 HP-GL/2 - 29

Page 169
Image 169
Homelite HL-1050, HL-P2500, HL-1660E, HL-2400CE, HL-1450, HL-1250, 2060 FP Fill polygon, Specifies Non-zero winding fill method