CR (Color Range)

The CR command sets the range for specifying relative color data.

Note

This command is only supported by the HP Color LaserJet, Color

 

LaserJet 5, 5M, and DeskJet printers. It is not supported by the

 

HP Color LaserJet 4500 or 8500 printers.

 

 

CR [b_ref_red, w_ref_red, b_ref_grn, w_ref_grn, b_ref_blue, w_ref_blue;]

Parameter

Format

Functional

Parameter

 

 

Range

Default

 

 

 

 

b_ref (red,

clamped real

-32768 to 32768

0

green, blue)

 

 

 

 

 

 

 

w_ref (red,

clamped real

-32768 to 32768

255

green, blue)

 

 

 

 

 

 

 

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

EN

Color Vector Graphics (HP-GL/2) 7-19

Page 183
Image 183
HP L 5 manual CR Color Range, Parameter Format Functional Range Default