HAM Documentation

Home · Downloads · Your Account · Submit News

Documentation Homepage HAMLib reference Back to HAM Homepage |

# pal.c File Reference

Color Palette Manipulation Functions. More...

`#include "mygba.h"`

## Functions

void | ham_SetBgPalCol (u8 color_number, u16 rgb_value)
| Set a specific BG palette color to a 15 bit BGR value
void | ham_SetBgPalColRGB (u8 color_number, u8 r, u8 g, u8 b)
| Set a specific BG palette color to a RGB value of your choice
void | ham_SetObjPalCol (u8 color_number, u16 rgb_value)
| Set a specific OBJ Palette color to a 15 bit BGR value
void | ham_SetObjPalColRGB (u8 color_number, u8 r, u8 g, u8 b)
| Set a specific OBJ palette color to a RGB value of your choice
void | ham_LoadBGPal (void *src, u16 size_u16s)
| Load new colors into the 256 color BG palette
void | ham_LoadBGPal256 (void *src)
| Load full 256 color palette into BG palette
void | ham_LoadObjPal (void *src, u16 size_u16s)
| Load new colors into the 256 color OBJ (Sprite) palette
void | ham_LoadObjPal256 (void *src)
| Load full 256 color palette into OBJ (Sprite) palette
void | ham_LoadBGPal16 (void *src, u8 pal_no)
| Load new colors into one 16 color BG palette
void | ham_LoadObjPal16 (void *src, u8 pal_no)
| Load new colors into one 16 color OBJ (Sprite) palette
void | ham_FadePal (u8 palno, s8 delta_per_call)
| Fade a 256 color palette to all white or black
u8 | ham_FadePalCol (u16 colno, s8 delta_per_call)
| Fade a specific color in a color palette to all white or black

## Detailed Description

Color Palette Manipulation Functions.

Documentation Homepage | HAMLib reference | Back to HAM Homepage
documentation created with Doxygen