mapcolor(3G) — Silicon Graphics
NAME
mapcolor − changes a color map entry
SPECIFICATION
C
mapcolor(i, red, green, blue)
Colorindex i;
short red, green, blue;
FORTRAN
subroutine mapcol(i, red, green, blue
integer*4 i, red, green, blue
Pascal
procedure mapcolor(i: Colorindex; red, green,
blue: Short);
DESCRIPTION
mapcolor changes a single color map entry to the specified RGB value. Its arguments include a color map index (i) and eight bits each of red, green, and blue intensities. Pixels written with i display the specified RGB (red, green, blue) intensities.
In multimap mode, only the current color map can be updated with mapcolor. The system ignores invalid indices.
SEE ALSO
multimap, onemap, setmap Programming Guide, Section 6.2, Color Maps
NOTE
This routine is available only in immediate mode.
Version 3.6 — December 20, 1987