Static retroimg::color::cga::PALETTE_CGA_4BIT[][src]

pub static PALETTE_CGA_4BIT: FixedPalette<[[u8; 3]; 16]>

16 color palette established by the full-color CGA standard, often seen in EGA mode as the default palette.

Note 1: In practice, CGA would not let you use all 16 colors simultaneously unless in a very low resolution (160x100). Moreover, even in 320x200, three of the four colors that a program could choose were fixed to specific subsets of this pallete. For a more realistic simulation of CGA, see also the separate palettes CGA_MODE4_0_LOW, CGA_MODE4_0_HIGH, CGA_MODE4_1_LOW and CGA_MODE4_1_HIGH palettes.

Note 2: This does not attempt to reproduce CGA’s composite color output.