: The 4-bit RGBI palette is similar to the 3-bit RGB palette but adds one bit for
intensity. It contains variants of colors (
dark or
bright on most machines, but
saturated or
unsaturated was also possible) potentially giving a total of 23×2 = 16 colors. Some implementations had only 15 effective colors due to the "dark" and "bright" variations of black being displayed identically. Others generated a grey tone or a different color. This 4-bit RGBI schema is used in several platforms with variations, so the table given below is a simple reference for the palette richness, and not an actual implemented palette. For this reason, no numbers are assigned to each color, and color order is arbitrary. : Systems that used this palette scheme: • IBM's original
Color Graphics Adapter • IBM's
Enhanced Graphics Adapter, in CGA modes •
Tandy graphics on IBM's
PCjr and
Tandy 1000-series computers •
Plantronics Colorplus on a limited number of PC-compatible computers •
MCGA and
VGA graphics standards for backward compatibility •
Commodore 128 series for its 80-column mode •
ZX Spectrum (and compatible) (with spatial constraints – only 2 colours for each group of 8x8 pixels) •
CPC 464/
664/
6128 •
Sharp MZ-800 series computers •
Thomson MO5 and
TO7 (with spatial constraints – only 2 colours for each group of 8x1 pixels) Specific details about implementation and actual graphical capabilities of specific systems, are listed on the next sub-sections.
ZX Spectrum The
ZX Spectrum (and compatible) computers use a variation of the
4-bit RGBI palette philosophy. This results in each of the colours of the 3-bit palette to have a
basic and
bright variant, with the exception of black. This was accomplished by having a maximum voltage level for the bright variant, and a lower voltage level for the basic variant. Due to this, black is the same in both variants. The
attribute byte associated with every 8×8 pixel cell comprises (from LSB to MSB): three bits for the background colour; three bits for the foreground colour; one bit for the
bright variant for both, and one bit for the flashing effect (alternate foreground and background colours every 0.32 seconds). Thus the colours are not independently selectable as indices of a true palette (there are not colour numbers 8 to 15, and the
bright bit affects both colours within a cell). However, within a single set of 8 colours the BRG order of bits means that the colours appear in increasing order of brightness on a monochrome display. The colour number (0 to 7) can be employed with the following
BASIC statements to choose: • BORDER
n, the colour for the surrounding area outside the pixel graphical area. This cannot use the
bright variants. • PAPER
n, the background (pixel bit value of 0) colour for an 8×8 pixel cell. • INK
n, the foreground (pixel bit value of 1) colour for an 8×8 pixel cell. And a value of 0 or 1 with the following statements to choose: • BRIGHT
n, sets the
bright bit for both foreground and background colours in an 8×8 pixel cell. • FLASH
n, sets the bit that controls the flashing effect in an 8×8 pixel cell. : •
Some ZX Spectrum clones or NTSC machines might display "bright black" as dark gray. •
Colours simulated as sRGB assume non-bright as 85% voltage (0.55 V) and bright as 100% (0.65 V). Each ZX Spectrum model used different voltages, so the colours shown are only approximate. :
IBM PC/XT and compatible systems The original
IBM PC launched in 1981 features an
Intel 8088 CPU which has 8-bit
data bus technology, though internally the CPU has a fully 16-bit architecture. It was offered with a
Monochrome Display Adapter (MDA) or a
Color Graphics Adapter (CGA). The MDA is a
text mode-only display adapter, without any graphic ability beyond using the built-in
code page 437 character set (which includes half-block and line-drawing characters), and employed an original IBM green
monochrome monitor; only black, green and intensified green could be seen on its screen. Then, only the CGA had true graphic modes. The
IBM PC XT model, which succeeded the original PC in 1983, has an identical architecture and CPU to its predecessor, only with more expansion slots and a hard disk equipped as standard. The same two video cards, the MDA and the CGA, remained available for the PC XT, and no upgraded video hardware was offered by IBM until the EGA, which followed the introduction of the
IBM Personal Computer/AT, with its full 16-bit bus design, in 1984.
CGA The
Color Graphics Adapter (CGA) outputs what IBM called "digital RGB" (that is, the R, G, B (and I) signals from the graphics card to the monitor can each only have two states: on or off). CGA supports a maximum of 16 colors. However, its 320×200 graphics mode is restricted to fixed palettes containing only four colors, and the 640×200 graphic mode is only two colors. 16 simultaneous colors are only available in text mode or the "tweaked text" 160×100 mode. A different set of 16 simultaneous colors is available using an NTSC TV or
composite monitor by using
artifact color techniques, with independent groups having demonstrated much larger color sets of over 256 colors See Color Graphics Adapter#High color depth. The CGA RGBI palette is a variant of the
4-bit RGBI schema, arranged internally like this:. Although the RGBI signals each have only two states, the CGA color monitor (usually mentioned as RGB monitor) decodes them as four-level RGB signals. Darker colors are the basic RGB 2nd-level signals except for brown, which is dark yellow with the level for the green component halved (1st level). Brighter colors are made by adding a uniform intensity one-level signal to every RGB signal of the dark ones, reaching the 3rd-level (except dark gray which reaches only the 1st level), and in this case yellow is produced as if the brown were ordinary dark yellow. The resulting displayed colors on RGB monitors are shown below: : : A few earlier non-IBM compatible CGA monitors lack the circuitry to decode color numbers as of four levels internally, and they cannot show brown and dark gray. The above palette is displayed in such monitors as follows: :
16-color palette modes The only full 16-color
BIOS modes of the CGA are the text mode 0 (40×25) and mode 2 (80×25). Disabling the flashing attribute effect and using the IBM
437 codepage block characters 220 (DCh) ▄ (bottom half) or 223 (DFh) ▀ (upper half), the mode 2 screen buffer provides an 80×50 quasi-graphic mode. Also, a
tweak mode can be set in the
CGA to give an extra, non-standard 160×100 pixels 16-color graphic mode. :
4-color palette modes In the 320×200 graphics mode, every pixel has two bits. A value of 0 is always a selectable background-plus-border color (with the same register and/or BIOS call used for the foreground color in the 640×200 graphic mode; black by default), and the three remaining values 1 to 3 are indices to one of the predefined color palette entries. The selection of a palette is a bit complex. There are two BIOS 320×200 CGA graphics modes: modes 4 and 5. Mode 4 has the composite color burst output enabled (in the Mode Control Register at I/O address 3D8H, bit 2 is cleared), and mode 5 has it disabled (the same bit 2 is set). Mode 5 is intended mainly for a monochrome
composite video monitor, but because of a specific intentional feature of the CGA hardware, it also has a different palette for an RGBI color monitor. For mode 4, two palettes can be chosen: green/red/brown and cyan/magenta/white; the difference is the absence or presence of the blue signal in all three colors. (The palette is selected with bit 5 of the Color-Select Register at I/O address 3D9h, where the bit value 1 selects the cyan/magenta/white palette [a/k/a "palette #1" because it is the BIOS default] and 0 selects the green/red/brown palette [a/k/a "palette #2"]. This bit can be set using BIOS INT 10h function 0Bh, subfunction 1.) The palette for BIOS video mode 5 is always cyan/red/white: blue is always on, and red and green each are controlled directly by one of the two bits of the pixel color value. For each of these three palette options, a low or high intensity palette can be chosen with bit 4 of the aforementioned Color-Select Register: a value of 0 means low intensity and 1 means high intensity. (No BIOS call exists to switch between the two intensity modes.) The selected intensity setting simply controls the "I" output signal to the RGBI monitor for all colors in the palette. As a result, the green-red-brown palette appears as bright-green/bright-red/yellow when high intensity is selected. The combination of color-burst enable/disable selection, palette selection, and intensity selection yields a total of 6 different possible palettes for CGA 320×200 graphics.
Mode 4, palette #1, low intensity :: ::The sixteen combinations with the background color are: :: :: ::(*) Useless due to the duplication of one of the colors.
Mode 4, palette #1, high intensity :: ::The sixteen combinations with the background color are: :: :: ::(*) Useless due to the duplication of one of the colors.
Mode 4, palette #2, low intensity :: ::The sixteen combinations with the background color are: :: :: ::(*) Useless due to the duplication of one of the colors.
Mode 4, palette #2, high intensity :: ::The sixteen combinations with the background color are: :: :: ::(*) Useless due to the duplication of one of the colors.
Mode 5, low intensity :: ::The sixteen combinations with the background color are: :: :: ::(*) Useless due to the duplication of one of the colors.
Mode 5, high intensity :: ::The sixteen combinations with the background color are: :: :: ::(*) Useless due to the duplication of one of the colors. :When viewed in a monochrome composite monitor, the mode 5 palettes above are shown as a (more or less brighter) 2-bit grayscale palette: ::
2-color palette mode In the 640×200 graphic mode (BIOS mode number 6), every pixel has only a single bit. The foreground color can be set, with the default being white. : :: ::The sixteen combinations are: :: ::
PCjr and Tandy 1000 series The
IBM PCjr features a "CGA Plus" video subsystem, consisting mainly of a 6845 CRTC and an LSI video chip known as the "
Video Gate Array", that can show all 16 CGA colors simultaneously on screen in the extended low-res graphic modes. The near-compatible
Tandy 1000 series features almost 100% PCjr-compatible video hardware implemented in a Tandy proprietary chip. This graphics adapter is better known by the name
Tandy Graphics Adapter, because the PCjr was short-lived but the Tandy 1000 line was quite popular for many years. The video mode capabilities of early-model Tandy 1000 computers are exactly the same as the PCjr's. (Later Tandy 1000 models featured "Tandy Video II" hardware which added a 640×200 16-color mode but surrendered PCjr hardware register-compatibility for CGA register-compatibility.) The PCjr adds three video modes to the CGA mode set: 160×200 16-color "low-resolution" graphics, 320×200 16-color "medium-resolution" graphics, and 640×200 4-color "high-resolution" graphics. All PCjr/Tandy 1000 graphics modes can reassign any color index to any palette entry making all 16 colors freely selectable in modes with fewer than 16 colors (including the plain CGA modes) and making color cycling effects possible in all modes. The PCjr also offers a graphics blink function which causes 8 colors to alternate between the low and high halves of the 16-color palette at the text blink rate. (A PCjr must be upgraded with a PCjr-specific internal 64 KB memory expansion card in order to use the latter two of these modes or any 80-column text mode. Tandy 1000 base models can use all video modes.) :
Thomson For
Thomson computers, a popular brand in France, the most common display modes are 320×200, with 8×1 attribute cells with 2 colors. Here the intensity byte affects saturation and not only brightness variations.
Thomson MO5 The
Thomson MO5 generated graphics based on a EFGJ03L (or MA4Q-1200) gate array capable of 40×25 text display and a resolution of 320 x 200 pixels with 16 colours (subject to proximity constraints – only two colors for a 8x1 pixel area). The colour palette has 8 basic RGB colours with an intensity bit (called P for "Pastel") that controlled saturation ("saturated" or "pastel"). In memory, the bit order was PBGR. The desaturated colours were obtained by mixing of the original RGB components within the video hardware. This is done by a PROM circuit, where a two-bit mask controls colour mixing ratios of 0%, 33%, 66% and 100% of the saturated hue. :
Thomson TO7/70 The
Thomson TO7/70 graphics were similar to the
Thomson MO5 and generated by a
Motorola MCA1300
gate array. capable of 40×25 text display and a resolution of 320 x 200 pixels with 16 colours (limited by 8x1 pixel colour attribute areas). The colour palette is
4-bit RGBI, with 8 basic RGB colours and a intensity bit (called P for "Pastel") that controlled saturation ("saturated" or "pastel"). : The following table lists the internal signals and shows an approximation of the generated colors, as seen on a
web standard sRGB monitor. Colors could be different when seen on an analog
PAL CRT television. An alternate configuration of the chip allows it to output 95% luminance color bars – similar to
BBC colour bars, more suited for usage in
teletext decoders. : ==3-level RGB palettes==