Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mapcolor(3g) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

mapcolor()  —  Silicon Graphics

NAME

mapcolor − changes a color map entry

SPECIFICATION

C
mapcolor(color, red, green, blue)
Colorindex color;
short red, green, blue;

FORTRAN
subroutine mapcol(color, red, green, blue)
integer*4 color, red, green, blue

Pascal
procedure mapcolor(color: longint; red, green,
blue: longint);

DESCRIPTION

mapcolor changes a single color map entry to the specified RGB value.  Its arguments include a color map index (color) and eight bits each of red, green, and blue intensities.  Pixels written with color display with 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

NOTE

This routine is available only in immediate mode. 

Version 2.5  —  April 22, 1987

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