GDDM V3R2 Base Application Programming Guide
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Colors GDDM V3R2 Base Application Programming Guide SC33-0867-01 |
||||||||||||||||||||
The numbers you specify for colors in calls such as GSCOL become pen numbers when the output goes to a plotter. On a display unit, this call:
CALL GSCOL(1);
means that subsequent primitives are to be displayed in blue. On a
plotter, it means the primitives are to be plotted with pen number 1.
Whether this is blue or some other color depends on what pen has been
loaded into the pen holder in position 1. It is the plotter operator's
responsibility to ensure that each pen-holder position has a pen of the
required color. A suggested scheme is shown in Table 8.
Complications arise because GDDM cannot determine the colors of pens in the holder, and because the number of pens varies from one type of plotter to another. GDDM's actions are summarized in Table 9. In more detail, this is what happens:
________________________________________________________________________ | Table 9. Color and pen numbers on plotters | |________ ____________ ____________ _____________________________________| | Color | Meaning | Color on | Pen number (and suggested color) | | number | | screen* | | |________|____________|____________|____________ ____________ ___________| | | | | 2-pen | 6-pen | 8-pen | | | | | plotter | plotter | plotter | |________|____________|____________|____________|____________|___________| | -2 | White | White | No pen | No pen | No pen | | -1 | Black | Black | 1 (black) | 6 (black) | 7 (black) | | 0 | Default | Green | 2 (red) | 6 (black) | 8 (green) | | 1 | Blue | Blue | 1 (black) | 1 (blue) | 1 (blue) | | 2 | Red | Red | 2 (red) | 2 (red) | 2 (red) | | 3 | Magenta | Magenta | 1 (black) | 3 (magenta)| 3 (magenta| | 4 | Green | Green | 2 (red) | 4 (green) | 4 (green) | | 5 | Cyan | Cyan | 1 (black) | 5 (cyan) | 5 (cyan) | | 6 | Yellow | Yellow | 2 (red) | 6 (black) | 6 (orange)| | 7 | Neutral | White | 1 (black) | 6 (black) | 7 (black) | | 8 | Background | Black | No pen | No pen | No pen | | 9 | Dark blue | Dark blue | 1 (black) | 1 (blue) | 1 (blue) | | 10 | Orange | Orange | 2 (red) | 2 (red) | 2 (red) | | 11 | Purple | Purple | 1 (black) | 3 (magenta)| 3 (magenta| | 12 | Dark green | Dark green | 2 (red) | 4 (green) | 4 (green) | | 13 | Turquoise | Turquoise | 1 (black) | 5 (cyan) | 5 (cyan) | | 14 | Mustard | Mustard | 2 (red) | 6 (black) | 6 (orange)| | 15 | Gray | Gray | 1 (black) | 6 (black) | 7 (black) | | 16 | Brown | Brown | 2 (red) | 6 (black) | 8 (green) | |________|____________|____________|____________|____________|___________| | * On 3270-PC/GX workstation. For a 3179-G, 3192-G, 3472-G, | | 3270-PC/G, 3279, and the 5550 family, only eight colors are available, | | and numbers in the range 9 through 15 wrap around to the colors blue | | through neutral (white), and 16 to the default color of green. | |________________________________________________________________________| When designing an application in which plotter output is important, it is advisable to experiment with the colors. A usable and pleasing picture on the screen may not be so if it is plotted unchanged. |
||||||||||||||||||||
Copyright IBM Corporation 1990, 2012 |