HP (Hewlett-Packard) PCL 5 Printer User Manual


 
CR (Color Range) The CR command sets the range for specifying relative
color data.
CR [b_ref_red, w_ref_red, b_ref_grn,
w_ref_grn, b_ref_blue, w_ref_blue;]
Parameter Format Functional
Range
Parameter
Default
b_ref (red,
green, blue)
clamped real –32768 to
32767
0
w_ref (red,
green, blue)
clamped real –32768 to
32767
255
Relative color is in reference to a range defined by a black
and white reference value for each primary (red, green, and
blue). For example, if the white reference is set as red=63,
green=63, blue=63, and the black references are set as red
= 0, green = 0, and blue = 0, then white = 63, 63, 63; black =
0, 0, 0; and medium blue = 0, 0, 31. However, if the white
reference is set as red = 63, green = 127, blue = 31 and the
black reference is set as red = 4, green = 0, and blue = 0,
then white = 63, 127, 31; black = 4, 0, 0; and medium blue =
4, 0, 15.
The first two parameters set the black and white references
(respectively) for red; the second pair sets the green
references, and the final pair the blue reference values. If
the black reference value for any primary is equal to the
white referecne value for the same primary, the command is
ignored.
The default for red, green, and blue “black references” is 0;
the default for red, green and blue “white references” is 255.
This command is defaulted by the “CR;”and IN commands.
Execution of this command causes current pen colors to be
remapped to the new range, so that current palette colors
remain unchanged.
7-18 Color Vector Graphics (HP-GL/2)7-18 Color Vector Graphics (HP-GL/2)