color(3G) color(3G)
NAME
color - sets the color index in the current mode
SPECIFICATION
C color(c)
Colorindex c;
FORTRAN subroutine color(c)
integer*4 c
DESCRIPTION
color sets the color index (c) that is used for drawing the
current drawing mode (see drawmode). For example, if the
drawing mode is NORMALDRAW (the default), the colorindex (c)
is written to the standard bitplanes during all drawing
routines. What appears on the screen is the color that has
been mapped to the corresponding index in the standard 4096
entry color map (see mapcolor). In alternate drawing modes,
such as OVERDRAW, color serves the same function as in
NORMALDRAW. Different bitplanes are used, and a separate,
smaller map is indexed. In RGB mode, color serves no
purpose, because the RGB components of the color are written
directly to the bitplanes.
In NORMALDRAW mode, c allows you to access up to 12
bitplanes in one map mode and up to 8 bitplanes in multimap
mode. In OVERDRAW and UNDERDRAW modes, it allows you to
access up to 2 bitplanes.
SEE ALSO
drawmode, getcolor, mapcolor, RGBcolor, RGBrange,
RGBwritemask, writemask
Programming Guide, Section 6.2, Color Map Mode
Page 1 (printed 8/20/87)