Brethren Adventure ArchivePC adventure, 1990–2010

History: the 1990s

Sixteen colours from sixty-four: the palette arithmetic behind 1990s adventure art

How many colours could a 1990s adventure game show at once, how many could it pick from, and how many bytes did one screen take? A worked table for EGA and VGA.

Two numbers explain the look of most adventure games from 1990 to the mid-1990s: how many colours could be on screen at once, and how many colours the artist could choose those from. They are different numbers, and mixing them up is a common mistake when people talk about “16-colour” and “256-colour” art.

What the reference articles state

  • Wikipedia’s article on the EGA says the card produces up to 16 colours at once, picked from a gamut of 64 colours (6-bit RGB), at several resolutions up to 640x350. It also says the vast majority of commercial games used 320x200 with 16 colours, for compatibility with CGA and Tandy, and so that players without an enhanced EGA monitor could run them.
  • The same article says that in the CGA-compatible 320x200 and 640x200 modes the full 16-colour CGA palette is used, and that standard EGA monitors could not use the extended 64-colour palette in 200-line modes. It adds that only a few commercial games supported the extended palette in those modes.
  • Wikipedia’s article on Mode 13h says it is the standard 256-colour mode on MCGA and VGA hardware, introduced in 1987 with the IBM PS/2, at 320x200. Each palette entry has 18 bits of colour, 6 per RGB channel, and the screen buffer is the bytes from offset 0 to 63,999.

Arithmetic from those statements

Six bits per channel means 2^6 = 64 levels of each of red, green and blue. EGA’s 64-colour gamut is two bits per channel, 4 levels each, and 4 x 4 x 4 = 64. VGA’s 18-bit entries allow 2^18 = 262,144 possible colours (64 x 64 x 64), of which 256 can be shown at once in mode 13h.

Mode Colours on screen at once Colours to choose from Bits per pixel Bytes for one 320x200 screen
EGA, 320x200 (CGA-compatible palette) 16 16 (fixed CGA set) 4 32,000
EGA, 640x350 16 64 4 not applicable (different size)
VGA mode 13h, 320x200 256 262,144 8 64,000

The last column is computed here: 320 x 200 = 64,000 pixels; at 8 bits (1 byte) per pixel that is 64,000 bytes, which matches the 0 to 63,999 range Wikipedia gives. At 4 bits per pixel the same screen is half that, 32,000 bytes. Sixteen colours need exactly 4 bits because 2^4 = 16.

What this means for how games looked

  • A 16-colour game had to build every shade from a handful of fixed colours, which is why dithering (alternating pixels of two colours) is so common in that art (our inference, not from the sources).
  • A 256-colour game could hold smooth gradients, but each background and its characters had to share one 256-colour palette at a time, so artists planned palettes per scene. This is an inference from the 256-colours-at-once limit, not a statement from the sources.
  • The 64,000-byte screen fits in a 64 KiB memory window (65,536 bytes). Wikipedia describes mode 13h as giving the programmer simple linear access, one address per pixel; it does not say the window size is the reason. The 1,536 bytes left over (65,536 minus 64,000) is computed here.

Why the numbers help when you play today

If an old game looks different between a DOS version and a later re-release, the palette is often the first thing to check. A game drawn for 16 colours shown through a 256-colour pipeline is not “upgraded”; it is the same 16 colours in a larger box.

Sources

Regional web reference

Vietnamese readers checking link-verification checklists and domain guides can refer to link vào MAN88.