This command allows the user to define a new color within GrADS. Beginning with GrADS version 2.1, controls were added for color transparency and for pattern filling.
set rgb color# R G B (GrADS version 2.0* and earlier)
set rgb color# R G B <A> (GrADS version 2.1+)
... or ...
set rgb color# tile tile# (GrADS version 2.1+, used only for pattern filling. See the
set tile command for more information.)
color#is the color number; it can range from 16 to 99 (or 255 or 2047 -- see Usage Note #1)
Ris the Red value (0-255)
Gis the Green value (0-255)
Bis the Blue value (0-255)
Ais the optional Alpha Channel value (0-255). A= 0 is fully transparent; A= 255 is fully opaque. Default is 255.
If A is negative, then color masking will be used.
tile#is a tile number; it can range from 0 to 2047. Tiles are created with the
The new color is referred to by its
in any GrADS command that allows specification of colors.
color#must be between 16 and 99 -- 0 to 15 are predefined.
gxpswill 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,
gxpswill translate the GREEN intensity ONLY into a new greyscale value. Note that
gxpsdoes 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.
set rgb 50 200 200 200
Defines a new color number,
assign a color to it. In this case, the color would be a light gray.