GDDM-PGF V2R1.3 OPS User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF | BOOK


Using basic colors and patterns

GDDM-PGF V2R1.3 OPS User's Guide
SC33-1776-00



The basic GDDM colors you can specify using FILL are those described in "Coloring text" in topic 2.4.1.3 (the color name, or the numbers -2 to 16). All color devices support colors in the range 1 to 8; only workstations, such as the PS/2, support the values above 8. If the high-value colors are not available, the values are mapped onto existing colors.

The patterns available are more than you can get from basic GDDM, as follows:

0 to 8
GDDM pattern emulating darkening shades
-1 to -8
OPS extension emulating lightening shades
9 to 14
GDDM line-composed patterns (mainly for charts)
15
No filling
16
Solid fill; the default value
1000 to 1032
Gray scale for PSEGs

If you specify a basic color, the default pattern is 16 (solid fill), as in:


          fill darkblue           ;* fill with solid dark blue

Patterns in the range 0 to 16 are standard GDDM patterns. For example:


          fill red 3

requests filling with red, and standard pattern 3.

Note that the GDDM patterns are device dependent. On some devices (such as the IBM 3279), the difference between pattern 1 and 8 is large; on others (such as a PS/2 with OS/2 GDDM link), the difference is quite small.

Here's a summary of the effect of all pattern-defining numbers:

0 to 8
Patterns of increasing darkness when used on a neutral background. (On a screen, fewer and fewer pels are lit.) OPS emulates this darkening also in PSEGs. See Figure 32 in topic 2.5.3.

-1 to -8
The further from 0 you get, the lighter the color. On a screen the light colors are emulated by putting the standard patterns 1 to 8 on top of a white background.

9 to 14
Mainly aimed at charts, allowing a clear distinction between the various data groups in black-and-white print.

1000 to 1032
Specifically aimed at PSEGs. They address a specific pattern, ADMDHIPL, used to emulate gray levels in PSEGs. Pattern 1000 is empty, 1001 to 1031 give increasingly filled patterns, and 1032 is solid. In print, 1032 is all black. See Figure 33.

If your terminal supports pattern loading, the patterns in the range 1000 to 1032 are visible on the screen.


   PICTURE 29          

Figure 33. Patterns in range 1000 to 1032


In general, patterns -8 to 16 will give you what you need. Use the patterns above 1000 only when you want very specific control of a PSEG rendering.

Note: GDDM allows only one loaded pattern set at a time. You cannot use the 64-color palette (ADMCOLS) and the gray-level palette in the same picture.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012