MakeCLUTGreenEntry

Packs a color index and green values into a single word.

Synopsis

VDLEntry MakeCLUTGreenEntry (uint8 index,uint8 g)

Description

This macro takes a green color-specification argument and packs it into a single 32-bit word. The color-entry word generated by MakeCLUTGreenEntry() can be passed to calls such as SetScreenColor() which require this kind of argument.

Arguments

index
An unsigned byte specifying an index into a color palette, with a value in the range of 0-31 for normal colors and 32 for the background color.
g
An unsigned byte specifying the green component of the color to be built, with a value in the range of 0-255.

Return Value

The macro returns a 32-bit color entry value.

Implementation

Macro implemented in graphics.h V20.

Associated File

graphics.h

See Also

SetScreenColor(), MakeCLUTGreenEntry(), MakeCLUTRedEntry(), MakeCLUTBlueEntry()