set rgb

This command allows the user to define a new color within GrADS. The syntax is:

set rgb color# R G B

where:

The new color is referred to by its color# in any GrADS command that allows specification of colors.

Usage Notes

  1. The color# must be a value between 16 and 99 -- 0 to 15 are predefined.

  2. The GrADS metafile-to-postscript translator gxps will make use of any new color settings although the output colors will be printer-dependent and should be checked for the desired rendering. When converting new color settings into grayscales, gxps will translate the GREEN intensity ONLY into a new greyscale value. Note that gxps does have a predefined mapping between color values from 0 to 15 such that the predefined rainbow sequence is rendered into a fairly pleasing greyscale gradation; this cannot be done for newly defined colors.

  3. For more details on using defined colors, see the section in the User's Guide on controlling colors in GrADS.

Examples

set rgb 50 200 200 200

Defines a new color number, 50, and assign a color to it. In this case, the color would be a light gray.