Using the composite output instead of an RGBI monitor produced lower-quality video, due to NTSC's
inferior separation between luminance and chrominance. This is especially a problem with 80-column text: For this reason, each of the text and graphics modes has a duplicate mode which disables the composite
color burst, resulting in a black-and-white picture, but also eliminating color bleeding to produce a sharper picture. On RGBI monitors, the two versions of each mode are usually identical, with the exception of the graphics mode, where the "monochrome" version produces a third palette.
Extended artifact colors Programmers discovered that this flaw could be turned into an asset, as distinct patterns of high-resolution dots would turn into consistent areas of solid colors, thus allowing the display of completely new
artifact colors. Both the standard four-color and the color-on-black graphics modes could be used with this technique.
Internal operation Direct colors are the normal 16 colors as described above under "The CGA color palette".
Artifact colors are seen because the composite monitor's NTSC chroma decoder misinterprets some of the luminance information as color. By carefully placing pixels in appropriate patterns, a programmer can produce specific cross-color artifacts yielding a desired new color; either from purely black-and-white pixels in mode, or resulting from a
combination of
direct and
artifact colors in mode, as seen on the following pictures: File:CGA CompVsRGB 640.png|640 × 200 File:CGA CompVsRGB 320p0.png|320 × 200 palette 0 File:CGA CompVsRGB 320p1.png|320 × 200 palette 1 Thus, with the choice between vs. mode, the choice between the two palettes, and one freely-selectable color (the background in modes and the foreground in mode), it is possible to use many different sets of artifact colors, making for a total
gamut of over 100 colors. Later
demonstrations by enthusiasts have increased the maximum number of colors the CGA can display at the same time to 1024. This technique involves a text mode tweak which quadruples the number of text rows. Certain ASCII characters such as U and ‼ are then used to produce the necessary patterns, which result in non-dithered images with an effective resolution of on a composite monitor. 160 cycles of the NTSC color clock occur during each line's output, so in 40-column mode each pixel occupies half a cycle and in 80-column mode each pixel uses a quarter of a cycle. Limiting the character display to the upper one or two scanlines, and taking advantage of the pixel arrangement in certain characters of the
codepage 437, it is possible to display up to 1024 colors. This technique was used in the
demo 8088 MPH.
Availability and caveats The variant of this technique (see above) is how the standard BIOS-supported graphics mode looks on a composite color monitor. The variant, however, requires modifying a bit (color burst disable) directly in the CGA's hardware registers. As a result, it is usually referred to as a separate "mode". Being completely dependent on the NTSC encoding/decoding process, composite color artifacting is not available on an RGBI monitor, nor is it emulated by EGA, VGA or contemporary graphics adapters. The modern, games-centric PC emulator
DOSBox supports a CGA mode, which can emulate a composite monitor's color artifacting. Both composite mode and the more complex variant are supported.
Resolution and usage Composite artifacting, whether used intentionally or as an unwanted artifact, reduces the effective horizontal resolution to a maximum of 160 pixels, more for black-on-white or white-on-black text, without changing the vertical resolution. The resulting composite video display with "artifacted" colors is sometimes described as a / 16-color "mode", though technically it was a technique using a standard mode. The low resolution of this composite color artifacting method led to it being used almost exclusively in games. Many high-profile titles offered graphics optimized for composite color monitors.
Ultima II, the first game in the game series to be ported to IBM PC, used CGA composite graphics. ''
King's Quest I'' also offered 16-color graphics on the PC, PCjr and Tandy 1000, but provided a 'RGB mode' at the title screen which would utilize only the ordinary CGA graphics mode, limited to 4 colors. File:Microsoft Decathlon RGBvsComposite.png|
Microsoft Decathlon. Top: game in composite mode; bottom: game in RGB mode; left: with RGB monitor; right: with composite monitor. File:KQ CompVsRGB.png|''King's Quest''. Top: game in composite mode; bottom: game in RGB mode; left: with RGB monitor; right: with composite monitor. File:Ultima2 CompVsRGB.png|
Ultima II. Left: with RGB monitor; right: with composite monitor. ==Limitations, bugs and errata==