Err SetScreenColor (Item screenItem,int32 colorEntry)
The colorEntry argument is a packed color value containing an index and individual red, green, and blue components. Each of the four components in the colorEntry argument consists of 1 byte of the 4-byte word. The index is the high-order byte, followed by bytes of red, green, and blue, with the blue value in the low-order byte. The colorEntry argument can be constructed using the MakeCLUTColorEntry()
macro.
GRAFERR_INDEXRANGE is returned if the index value in the color entry is larger than 32.
MakeCLUTColorEntry
()