Docs » Autodocs » graphics.library » GetRGB4
GetRGB4 -- Inquire value of entry in ColorMap.
value = GetRGB4( colormap, entry ) d0 a0 d0 ULONG GetRGB4(struct ColorMap *, LONG);
Read and format a value from the ColorMap.
colormap - pointer to ColorMap structure entry - index into colormap
returns -1 if no valid entry return UWORD RGB value 4 bits per gun right justified
Intuition's DisplayBeep() changes color 0. Reading Color 0 during a DisplayBeep() will lead to incorrect results.
SetRGB4(), LoadRGB4(), GetColorMap(), FreeColorMap(), <graphics/view.h>
|