libmsx
C library for MSX
|
Color palettes. More...
Macros | |
#define | RGB(r, g, b) ((palette_t)((((g) & 7) << 8) | (((r) & 7) << 4) | ((b) & 7))) |
Constructs RGB color palette value. | |
Typedefs | |
typedef uint16_t | palette_t |
Type for RGB color palette value. | |
Functions | |
void | vdp_set_palette (uint8_t idx, const palette_t palette) |
MSX2 Write to a VDP palette register. | |
void | vdp_write_palette (const palette_t palettes[16]) |
MSX2 Write to a series of VDP palette registers. | |
Color palettes.
#define RGB | ( | r, | |
g, | |||
b | |||
) | ((palette_t)((((g) & 7) << 8) | (((r) & 7) << 4) | ((b) & 7))) |
typedef uint16_t palette_t |
void vdp_set_palette | ( | uint8_t | idx, |
const palette_t | palette | ||
) |
MSX2
Write to a VDP palette register.
idx | color palette number. (0..15) |
palette | color palette value. |