The /usr/openwin/lib/rgb.txt database translates color names into red, green, blue values. You can either refer to the rgb.txt file for color names to use for your site's labels or use hexadecimal color values.
Briefly, here are a few high-level points about color values:
Color values specify the amount of red, green, and blue (RGB) that compose the color.
RGB values can be specified with three hexadecimal numbers from 0 to FF; each of which indicates the amount of red, green, and blue present in the color.
For example, pure red is #FF0000, pure green is #00FF00, pure blue is #0000FF, pure white is #FFFFFF, and pure black is #000000.
The number of colors available on the screen depends on the amount of memory available for specifying colors and number of color planes, on how many other window clients are using color cells, and whether private color maps are being used by other applications.
To minimize conflicts you should use color names or hexadecimal color values that you know have been specified for other applications that display without color flashing.
The default color values defined in Trusted Solaris label_encodings COLOR NAMES section have been chosen with these caveats in mind (see the following table).
Default COLOR NAMES Assigned to Label Components |
|
---|---|
label= Admin_Low; |
color= #bdbdbd; |
label= u; |
color= green; |
label= c; |
color= blue; |
label= s; |
color= yellow; |
label= ts; |
color= red; |
word= sb; |
color= cyan; |
word= cc; |
color= magenta; |
label= Admin_High; |
color= #636363; |