HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

21-32 The Polygon Group EN
The FP command fills between points defined with either the pen
down or the pen up. The polygon is filled using the current pen, fill
type, line type and attributes (if the fill type is not raster). The FP
command includes an automatic pen down. When the command
execution is complete, the original pen location and up/down status
are restored.
The example on the next page creates a polygon composed of two
subpolygons. In this case, the FP command fills alternating areas,
beginning with the outside area.
Table 21-17 Example
?E Reset the printer.
?%0B Enter HP-GL/2 mode.
IN; Initialize HP-GL/2 mode.
SP1; Select pen number 1. Even though there is no
physical pen, the SP command must be used
to enable printing.
PA1500,1500; Specify absolute plotting and move to
(1500,1500).
PM0;CI1000,60;
PA1500,1500;
CI500;PM2;
Enter the polygon mode, store a circle with
radius of 1000 plu and a 60° chord angle,
store a pen move to (1500,1500), and another
circle with a 500 plu radius and a 5° (default)
chord angle. Close the current polygon and
exit polygon mode.
LT4;FT3,50,45; Select line type 4 and fill type 3. Specify a 50
plu distance between the fill lines, and slant
the lines at a 45° angle.
FP; Using even-odd fill method, fill the polygon
currently in the polygon buffer with the line
and fill types just specified.
?%0A Enter the PCL mode.
?E Send a reset to end the job and eject the page.