mapcolor(3) — Silicon Graphics R1c
NAME
mapcolor - change a color map entry
SYNOPSIS
C
mapcolor(color, red, green, blue)
Colorindex color;
RGBvalue red, green, blue;
FORTRAN
subroutine mapcol(color, red, green, blue)
integer*2 color, red, green, blue
Pascal
procedure mapcolor(color: Colorindex; red, green, blue: RGBvalue);
DESCRIPTION
Mapcolor changes a single color map entry to the specified RGB value. Its arguments are a color map index and eight bits each of red, green, and blue intensities. Pixels written with color color will be displayed with the specified RGB intensities. Color map entries which remain accessible are invariant with respect to display and color map mode changes.
In multimap mode only the currently selected color map can be updated with mapcolor. Invalid indices are ignored.
SEE ALSO
multimap, onemap, setmap, setplanes
NOTE
This command can only be used in immediate mode.
Version 2.3 — July 04, 1985