GBDK 2020 Docs
API Documentation for GBDK 2020
|
Go to the documentation of this file.
32 #define RGB(r, g, b) \
33 ((((UINT16)(b) & 0x1f) << 10) | (((UINT16)(g) & 0x1f) << 5) | (((UINT16)(r) & 0x1f) << 0))
37 #define RGB_RED RGB(31, 0, 0)
38 #define RGB_DARKRED RGB(15, 0, 0)
39 #define RGB_GREEN RGB( 0, 31, 0)
40 #define RGB_DARKGREEN RGB( 0, 15, 0)
41 #define RGB_BLUE RGB( 0, 0, 31)
42 #define RGB_DARKBLUE RGB( 0, 0, 15)
43 #define RGB_YELLOW RGB(31, 31, 0)
44 #define RGB_DARKYELLOW RGB(21, 21, 0)
45 #define RGB_CYAN RGB( 0, 31, 31)
46 #define RGB_AQUA RGB(28, 5, 22)
47 #define RGB_PINK RGB(11, 0, 31)
48 #define RGB_PURPLE RGB(21, 0, 21)
49 #define RGB_BLACK RGB( 0, 0, 0)
50 #define RGB_DARKGRAY RGB(10, 10, 10)
51 #define RGB_LIGHTGRAY RGB(21, 21, 21)
52 #define RGB_WHITE RGB(31, 31, 31)
54 #define RGB_LIGHTFLESH RGB(30, 20, 15)
55 #define RGB_BROWN RGB(10, 10, 0)
56 #define RGB_ORANGE RGB(30, 20, 0)
57 #define RGB_TEAL RGB(15, 15, 0)
unsigned char UINT8
Definition: types.h:21
unsigned int UINT16
Definition: types.h:27
void set_sprite_palette_entry(UINT8 palette, UINT8 entry, UINT16 rgb_data)
void set_bkg_palette_entry(UINT8 palette, UINT8 entry, UINT16 rgb_data)
void set_bkg_palette(UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data) NONBANKED
void cgb_compatibility(void)
#define NONBANKED
Definition: types.h:11
void set_sprite_palette(UINT8 first_palette, UINT8 nb_palettes, UINT16 *rgb_data) NONBANKED