Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mapcolor(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026