HP (Hewlett-Packard) PCL 5 Printer User Manual


 
For a black and white device, pen 0 defaults to white; all
remaining pen colors default to black.
This command is ignored if the current palette was created
by the Simple Color command (?*r#U). An IN command
defaults pen colors as indicated in the previous table.
NP (Number
of Pens)
The NP command resizes the palette after the IN or ?*v#W
commands.
NP [n;]
or
NP[;]
Parameter Format Functional
Range
Parameter
Default
n clamped
integer
2 to 32768 device-
dependent *
* The default palette size for the HP color printers is 8.
n — the parameter n denotes the size of the HP-GL/2
palette, where n is a power of two. If n is not a power of
two, the next larger power of two is used. The palette is
an array of virtual pens, each having an associated color
value and an associated width. Pen colors are defined
in terms of RGB components using the PC command.
Widths are established using the PW and WU
commands. A pen is selected with the SP command.
The maximum value for n is device-dependent, but is
greater than or equal to the number of distinct colors the
printer is able to produce. If n is larger than that
maximum, the maximum-sized palette is allocated. If n < 2,
error 3 is set and the command is ignored.
The “NP;” command defaults the palette size. Receipt of
this command does not default pen colors and/or widths for
7-16 Color Vector Graphics (HP-GL/2)7-16 Color Vector Graphics (HP-GL/2)