(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/graphics.h>

ULONG GetRGB4 (colormap , entry )

LOCATION
In GfxBase at offset 97

SYNOPSIS
struct ColorMap * colormap
LONG entry

FUNCTION
Read a value from the ColorMap. Use this function, as the colormap is subject to change.

INPUTS
colormap
pointer to ColorMap structure
entry
index into colormap

RESULT
-1 : if no valid entry. (index to high) other : UWORD RGB value, 4 bits per electron gun, right justified

EXAMPLE

SEE ALSO
GetColorMap() FreeColorMap() SetRGB4() LoadRGB4() graphics/view.h

NOTES

BUGS

INTERNALS
This function depends on the strcuture of ColorMap->ColorTable.

HISTORY