Display » Colors module

GBA displays 15 bits colors: 5 bits for the blue component, 5 for the green one and 5 for the red one.

Files

file bn_bpp_mode.h
file bn_color.h
file bn_color_effect.h
file bn_colors.h

Namespaces

namespace bn
Main Butano namespace.
namespace bn::color_effect
Color effects related functions.
namespace bn::colors
Some constant colors from TONC.

Classes

class bn::color
Defines a color in the GBA format (15 bits BGR).
template<>
struct bn::hash<color>
Hash support for color.

Enums

enum class bpp_mode: uint8_t { BPP_4, BPP_8 }
Specifies the available bits per pixel modes.

Enum documentation

enum class bpp_mode: uint8_t

Specifies the available bits per pixel modes.

Enumerators
BPP_4

4 bits per pixel (16 colors).

BPP_8

8 bits per pixel (256 colors).