VCS Scripts:  Scripting Colormap Attributes: C_name   


A colormap contains 240 user-definable colors that are used for graphical displays. The color mixtures are defined in terms of percentages of red, green, and blue colors (0 to 100% for each). The resulting color depends on the specified mixtures of red, green, and blue.

There are 16 additional colors that are usable, but they cannot be changed by the user. These fixed colors are, in order: 240-white, 241-black, 242-red, 243-green, 244-blue, 245-yellow, 246-cyan, 247-magenta, 248-orange, 249-brown, 250-violet, 251-olive green, 252-grey, 253-light green, 254-light red, and 255-light blue. In addition, colors 0 through 4 are used for VCS interactive windows and panels.


The Colormap attributes are specified as follows:

C_name(red,green,blue, ...)


****red = red color index value ****

The red color index value ranges from 0 to 100.

****green = green color index value ****

The green color index value ranges from 0 to 100.

****blue = blue color index value ****

The blue color index value ranges from 0 to 100.

Script Example

An example of a Colormap script follows:

Last update January 7, 1997. For further information, contact: Dean N. Williams (
This page is maintained by Anna McCravy (
 and LLNL Disclaimers