-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_palette_t
Lior Halphon edited this page Nov 30, 2024
·
7 revisions
typedef struct {
struct GB_color_s {
uint8_t r, g, b;
} colors[5];
} GB_palette_t;
In display.h
A structure describing a color palette, used for rendering the screen of a monochrome model. The first 4 colors represent the 4 different shades of grey (or green) rendered by a Game Boy LCD, with the first color being the darkest and the last color being the lightest. The 5th color is used when rendering a turned-off LCD.