## set rgb

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

`set rgb color# R G B`

where:

`color#` is the color number; it can range from 16 to 99
`R` is the Red value (0-255)
`G` is the Green value (0-255)
`B` is the Blue value 0-255)

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.