Tektronix 240 user manual 5 1.0 0.0

Models: 240

1 202
Download 202 pages 8.43 Kb
Page 191
Image 191

Using Different Printer Language Modes C

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.

HP-GL pen color values

Color

Red value

Green value

Blue value

 

 

 

 

red

1.0

0.0

0.0

 

 

 

 

green

0.0

1.0

0.0

 

 

 

 

blue

0.0

0.0

1.0

 

 

 

 

yellow

1.0

1.0

0.0

 

 

 

 

magenta

1.0

0.0

1.0

 

 

 

 

cyan

0.0

1.0

1.0

 

 

 

 

white

1.0

1.0

1.0

 

 

 

 

black

0.0

0.0

0.0

 

 

 

 

To add a new pen, you must redefine pens 0 through 7 first, then add the new pens that you want.

To set pen widths and colors to values other than those in HPGLPENS.PS, do the following steps:

1.If necessary, configure the printer port to receive PostScript; see page C-5 for instructions.

2.Open the HPGLPENS.PS file in a text editor.

3.Edit the file and substitute the values that you want for those in the file. Color values can be any decimal number between 0.0 and 1.0.

For example, to change pen 4 to a purple color and a width of

.5 mm, edit HPGLPENS.PS and change the line for pen number 4 to the following:

4 0.5 1.0 0.0 0.5

Printing Reference

C-9

Page 191
Image 191
Tektronix 240 user manual 5 1.0 0.0