7 GB_palette_t
Lior Halphon edited this page 2024-12-01 01:09:32 +02:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Definition

typedef struct {
    struct GB_color_s {
        uint8_t r, g, b;
    } colors[5];
} GB_palette_t;

In display.h

Description

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.

See Also