Hpglpens.ps (Set Hp-Gl Pen Colors) - Tektronix Phaser 220e Reference Manual

Drivers and utilities
Hide thumbs Also See for Phaser 220e:
Table of Contents

Advertisement

4
Printing from a Workstation

HPGLPENS.PS (set HP-GL pen colors)

4-10
Phaser 220 Drivers and Utilities
The HPGLPENS.PS Þle changes the color and width of the default pen
colors. The HP 7475A plotter has only six pens, but the printer's emulation
supports up to 256 pens. In HPGLPENS.PS, pen number, pen width, red
value, green value, and blue value are listed in parentheses after
ColorSetup. /ColorSetup (pen_number width red_value green_value
blue_value...)
The pen color change is persistent across jobs but not across printer power
cycles; it affects all HP-GL jobs that immediately follow it until the next
printer reset. In the example below, all pen widths are set to 0.35
millimeters. Pen 0 is white (this is the background pen color), pen 1 is black,
pen 2 is red, pen 3 is green, pen 4 is blue, pen 5 is cyan, pen 6 is magenta, and
pen 7 is yellow.
The contents of HPGLPENS.PS is shown here:
%!
CTRL-D
systemdict/languagelevel known{languagelevel 2 eq}
{false} ifelse
{
(%HP7475A%) << /Password (0)
>> setdevparams
} if
CTRL-D
Allowable values for pen numbers are 0 through 255. Pen width is
measured in millimeters. Red, green, and blue values can be any number
between 0.0 and 1.0. The following table shows the red, green, and blue
combinations for each of the eight basic colors.
/ColorSetup (0 0.35 1.0 1.0 1.0
1 0.35 0.0 0.0 0.0
2 0.35 1.0 0.0 0.0
3 0.35 0.0 1.0 0.0
4 0.35 0.0 0.0 1.0
5 0.35 0.0 1.0 1.0
6 0.35 1.0 0.0 1.0
7 0.35 1.0 1.0 0.0)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Phaser 220iPhaser 220Phaser 220i

Table of Contents