Title | Previous | Next

colordef

Redefine a color in the MeshTV standard color table.

Synopsis:

colordef color_number red green blue [scale]

Arguments:

color_number

An integer from 1 to 9 which indicates which color to replace in the MeshTV standard color table. Color Names There are 11 colors in the table, but black and white cannot be modified.

red

The red component of the color. This is a floating point percentage between 0. and 1.If any numbers are larger than 1, then they are scaled relative to the largest of the three numbers in the trio such that the largest number in the trio becomes one. If the scale value is supplied and is greater than the largest number in the trio, then the numbers in the trio are divided by the scale.

green

The green component of the color. This is a floating point percentage between 0. and 1.If any numbers are larger than 1, then they are scaled relative to the largest of the three numbers in the trio such that the largest number in the trio becomes one. If the scale value is supplied and is greater than the largest number in the trio, then the numbers in the trio are divided by the scale.

blue

The blue component of the color. This is a floating point percentage between 0. and 1. If any numbers are larger than 1, then they are scaled relative to the largest of the three numbers in the trio such that the largest number in the trio becomes one. If the scale value is supplied and is greater than the largest number in the trio, then the numbers in the trio are divided by the scale.

scale

An optional numeric value used to scale the numbers in the rgb trio if any of the numbers are greater than one. If the scale value is not supplied then the numbers in the rgb trio are scaled relative to the largest of the three numbers in the trio.

MeshTV provides 9 standard colors. These can be replaced via the colordef command. To create a color via an existing X Windows color name, use the colorname command.

This command defines a color to be used for material ( bnd ), contour ( iso ), mesh , filled material ( smat ), and vec plots. The color is comprised of red, green, and blue components, and these are specified via a floating point number between 0 and 1. Numbers larger than one are scaled so that the largest value becomes one if the scale is not specified. This means that "colordef 1 0 0.5 1" is identical to "colordef 1 0 10 20" .

Note that if you are using the GUI and you issue this command in the command line interface window, the menus which allow color selection for lines will be drawn with the incorrect colors and color names, if you modify MeshTV's colors. For example, if you change color number 4, which is blue, to red, the menu entry which says "blue" (and which is shown in blue) will actually produce red.

Examples:

colordef 1 0.0 0.5 1.0 #Set color 1 to aquamarine.

colordef 2 0 10 20 #Color 2 is the same aquamarine.

See Also:

bnd , colorname , iso , mesh , smat , vec


Title | Previous | Next

MeshTV@viper.llnl.gov
Copyright © 1998, U.S. Department of Energy. All rights reserved.