Skip to content

Built‐In DMG Palettes

Lior Halphon edited this page Nov 30, 2024 · 2 revisions

Definition

extern const GB_palette_t GB_PALETTE_GREY;
extern const GB_palette_t GB_PALETTE_DMG;
extern const GB_palette_t GB_PALETTE_MGB;
extern const GB_palette_t GB_PALETTE_GBL;

In display.h

Description

Four built-in preset palettes to be used with GB_set_palette:

  • GB_PALETTE_GREY: A palette with four evenly-spaced shades of grey.
  • GB_PALETTE_DMG: A green palette mimicking the look of the original Game Boy (DMG)
  • GB_PALETTE_MGB: An olive palette mimicking the look of the Game Boy Pocket (MGB)
  • GB_PALETTE_GBL: A teal palette mimicking the look of the Game Boy Light (GBL/MGL)

See Also

Clone this wiki locally