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 > (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.)
where:
color# is the color number; it can range from 16 to 99 (or 255 or 2047 -- see Usage Note #1)R is the Red value (0-255)G is the Green value (0-255)B is the Blue value (0-255)A is 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 maskingwill be used.tile# is a tile number; it can range from 0 to 2047. Tiles are created with the set tilecommand.The new color is referred to by its color# in any GrADS command that allows specification of colors.
color# must be between 16 and 99 -- 0 to 15 are predefined.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.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.