Colors



D R0 G0  B0  R4 R3 R2 R1  G4 G3 G2 G1  B4 B3 B2 B1

Each color component is coded with 6 bits, with 1 common LSB (dark bit), effectively making full use of the 16 color definition bits.

The upper 4 bits of each component fits in 3 nibbles, making it easy to write or guess color values ($0F00 is red, $00F0, is green...).

=Converter=