// HEL Library \\

 
Main Page | Modules | Related Pages

Palette Functions

Functions


Function Documentation

void hel_PalBgClear16 u8  PaletteBank  ) 
 

Set a background palette-bank to black.

This function sets the background palette-bank specified in PaletteBank to black

Parameters:
PaletteBank The palette-bank (0..15)
See also:
hel_PalBgClearEx, hel_PalBgClear256

void hel_PalBgClear256 void   ) 
 

Set entire background palette to black.

This function sets the entire background palette to black

See also:
hel_PalBgClearEx, hel_PalBgClear16

void hel_PalBgClearEx u8  StartIndex,
u8  EndIndex,
u8  Red,
u8  Green,
u8  Blue
 

Set background palette to a specific color.

This function sets all palette entries between StartIndex and EndIndex to the color specified in Red, Green and Blue.

Parameters:
StartIndex Index to start at
EndIndex Index to end at
Red Red amount (0..255)
Green Green amount (0..255)
Blue Blue amount (0..255)
See also:
hel_PalBgClear256, hel_PalBgClear16

void hel_PalBgInvert16 u8  PaletteBank  ) 
 

Invert colors of a background palette-bank.

This function sets the background palette-bank specified in PaletteBank to black

Parameters:
PaletteBank The palette-bank (0..15)
See also:
hel_PalBgInvertEx, hel_PalBgInvert256

void hel_PalBgInvert256 void   ) 
 

Invert colors of entire background palette.

This function inverts the entire background palette entries (colors)

See also:
hel_PalBgInvertEx, hel_PalBgInvert16

void hel_PalBgInvertEx u8  StartIndex,
u8  EndIndex
 

Invert a part of background palette.

This function inverts all palette entries (colors) between StartIndex and EndIndex.

Parameters:
StartIndex Index to start at
EndIndex Index to end at
See also:
hel_PalBgClear256, hel_PalBgClear16

void hel_PalObjLoad16 void *  pPalette,
u32  PaletteBank
 

Load a 16 color object palette.

The hel_PalObjLoad16 function loads a 16 color object palette to the bank specified by PaletteBank

Parameters:
pPalette Pointer to palette-data
PaletteBank The palette-bank (0..15)
Note:
ham_LoadObjPal16 brings up unexpected results from time to time, so here is a replacement function.


Generated on Sun May 22 18:53:56 2005 by DoxyGen 1.3.9.1