Figure 21-1

The Fill Rectangle Absolute (RA) and Fill Rectangle Relative (RR) commands, both discussed later in this chapter, fill their rectangles with the default or current fill pattern. You may also want to edge (or outline) the rectangle for better image definition with some fill types. The following command sequence draws two filled rectangles: one edged and one not.

Table 21-4 Example: Filled Rectangles

?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.

 

 

PA0,0;

Specify absolute plotting and move to location

 

(0,0).

 

 

FT3;

Specify fill type 3 (hatching—parallel lines).

 

 

RR1500,1000;

Fill a rectangular shape with the currently active

 

fill pattern. The lower left corner of the rectangle

 

should be the current location (0,0), and the

 

upper right corner should be 1500 plu in the X

 

direction and 1000 plu in the Y direction from

 

the starting location.

 

 

21-4The Polygon Group

EN

Page 516
Image 516
HP 5961-0509 manual Example Filled Rectangles, 21-4The Polygon Group