Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (23 loc) · 832 Bytes

File metadata and controls

38 lines (23 loc) · 832 Bytes

NAME

GetRGB4 -- Inquire value of entry in ColorMap.

SYNOPSIS

    value = GetRGB4( colormap, entry )
      d0              a0       d0

    ULONG GetRGB4(struct ColorMap *, LONG);

Links: ColorMap

FUNCTION

Read and format a value from the ColorMap.

INPUTS

colormap - pointer to ColorMap structure entry - index into colormap

RESULT returns -1 if no valid entry return UWORD RGB value 4 bits per gun right justified

NOTE Intuition's DisplayBeep changes color 0. Reading Color 0 during a DisplayBeep will lead to incorrect results.

BUGS

SEE ALSO

SetRGB4 LoadRGB4 GetColorMap FreeColorMap graphics/view.h