DsTool has two color modes: alternating color and picked color. The alternating color cycles through a list of entries in a colormap. For example, different colors are used to distinguish flows. The pick color can be selected by the user and is used to color code points according to the type of phenomena they represent.
Suppose the colormap has entries. In the default settings for
DsTool, we have the bounds
. The value
is
fixed, as DsTool needs at least
``system'' colors, and at least
one color for alternating colors. The value
is variable, and depends upon the value of the constant
MAX_DSCOLOR in the file
$DSTOOL/src/include/dscolor.h.
Entries 0, 1, 2 of the colormap are reserved for system
colors Red, Green, Blue, respectively. The alternating color
cycles through entries 3 through
, while pick color can use any entry 0
through
. The available colors are displayed and can the
pick color be selected in the Color window.
Each point that is stored in memory has three color (integer) entries. They are used to designate how the point is displayed in 2-D View windows. Points sent to Geomview via the 3-D View window are always displayed with dots, and points displayed in 1-D View windows are always connected with lines. The first color field contains the alternating color for the point, the second color field contains the pick color, and the third color field contains the symbol code. If the alternating color is a positive number, and the pick color setting on the 2-D or 3-D View window is off, then the point is plotted with the corresponding alternating color of the colormap. If the alternating color is negative, or the pick color setting of the 2-D or 3-D View window is on, then the point is plotted with the pick color. Regardless of the pick color setting, the point is plotted in 2-D View windows with the symbol determined by the symbol code.