9.11.1. - Pen numbering
C-PLOT graphics filters are written to conform to the pen-numbering conventions described in this section. These conventions allow a command file to produce consistent plots on pen plotters, laser printers and mono or color video monitors.
The plot program itself doesn't distinguish among pen numbers (except to ignore numbers greater than 1000 when selecting the pen-plotter pen). The number entered with the
z
# command is simply passed
on to a graphics filter.
The code in each filter can use or ignore
the pen number, depending on the device characteristics.
Not all pen
numbers will be functional on all filters.
Line-width values are interpreted in C-PLOT basic units, where there are 40 basic units in 1 C-PLOT millimeter. A line width of zero should select the thinnest line available on a device.
The following table shows the recommended correspondence between pen number and attribute:
|
The colors associated with pen numbers 1000 through 3999 modulus 1000 are to be the same as the colors associated with pen numbers 0 through 999.
Pens 0, 1000, 2000 and 3000 track the background color assigned with pens 3002-3999. By drawing with pen 0, you can erase previously drawn portions of the plots. Pens 1, 1001, 2001 and 3001 track the foreground color assigned with pens 10-999.
The following 9000-series flags have been defined:
|
When symbol filling is on, the interior of the symbols is painted solidly with the fill color. When off, white-filled symbols show through what is underneath, and black-filled symbols are colored by drawing a grid of lines. The startup default is to have symbol filling on.
The white-filled symbols are those selected with the
sy
command using symbol codes 0, 1, 2, 3, 8, 12, 14-28.
The
black-filled
symbols have symbol codes 4, 5, 6, 7, 10, 11 and 13.
White-filled
symbols are always outlined by the current line color.
Black-filled
symbols are outlined with the current background color or not at all
if the no-outline flag has been selected.
The startup default is to
have
black-filled
symbol outlines drawn.
The following pen color assignments are standardized for color display devices:
|
The colors for VGA and EGA graphics on 386 and 486 PC computers are as follows:
|
The colors available on X Windows, SunView, color PostScript and HP-GL follow:
|
Colors 75 to 175 are 101 shades of gray from black to white.