Composite artifact colors
Composite artifact colors is a technique commonly used to address several graphic modes of some 1970s and 1980s home computers. With some machines, when connected to an NTSC TV or monitor over composite video outputs, the video signal encoding allowed for extra colors to be displayed, by manipulating the pixel position on screen, not being limited by each machine's hardware color palette.
This mode was used mainly for games, since it limits the display's effective horizontal resolution. It was most common on the IBM PC, TRS-80 Color Computer, Apple II and Atari 8-bit computers, and used by the Ultima role-playing video games. Software titles usually provided an option to select between "RGB mode" and "Color Composite mode".
On PAL displays the effect is also present, but generates more limited colors. Depending on the exact PAL system used results will vary.
Although related, artifact colors are not the same as horizontal blurring. Blurring is a general effect of using a composite connection, that simply creates new colors due to a mix of adjacent horizontal pixel values. The exact mix will depend on the saturation and specific colors of the original pixels. Nevertheless, this effect can be exploited by using dither patterns, generating new intermediate palette colors on machines with a sufficiently high resolution display, like the ZX Spectrum, Mega Drive/Genesis, NES/Famicom or Amiga.
Technical details
In the NTSC color system as used in broadcasting, the color subcarrier frequency is exactly 227.5 times the line frequency, i.e., each line contains 227.5 color subcarrier cycles. This causes the apparent phase of the subcarrier to be reversed every line, which results in solid colors being displayed as a checkerboard-like pattern when viewed on a monochrome display that does not filter out the color information.Computers such as the Apple II and the CGA video card for the IBM PC, output a signal that is an approximation of the broadcast standard. In both the Apple II and the CGA, each line is elongated to full 228 cycles of the color subcarrier. This is within the tolerances of most displays, so the image is displayed clearly, but the pattern generated by solid colors becomes straight vertical stripes instead. Each horizontal position within any line has constant phase relationship to the color subcarrier under this system, so lighting up a pixel at each specific horizontal index always has the same effect on the color information as interpreted by the display.
It is also typical for these types of display adapters to have pixel clocks that are a multiple of the NTSC subcarrier frequency. Both the Apple II and the CGA use the pixel clock of 14.318 MHz, four times the color subcarrier. For a broadcast-quality signal, that would mean 910 pixel cycles per each line, with about 750 of them occupying the visible portion of the screen. With the stretched lines of these early computers, each line was actually 912 pixel cycles long, and only a portion of the visible area was used - 560 pixels in case of Apple II, 640 in case of CGA. Each pixel could have one of the 4 predefined phase relationships to the color burst, so a "fake" subcarrier that will be interpreted as color by the display, can be constructed by outputting specific pixel patterns.
In case of adapters that also have native color capabilities, such as the CGA, this technique can be further expanded by forming patterns out of the built-in colors - this way, the "real" subcarrier generated by the hardware will interfere with the "fake" one residing within the pixel patterns, causing the display to interpret the result as new, unique colors.
In the PAL system, the phase of the subcarrier is interpreted differently from line to line, and the phase of the color burst is strictly required to change on alternate lines. This makes the tricks described above infeasible. SECAM uses frequency modulation, so generating artifact colors would require timing far more precise than synchronizing the pixel clock to the subcarrier frequency of either NTSC or PAL. For these reasons, artifact colors were generally only used with the NTSC color system. They are theoretically possible in any of them, due to the fact that in every analog television system, color information resides within the same bandwidth as luminance information.
Artifact colors should not be confused with the more common horizontal blurring effect. Horizontal blurring is an effect of using a composite video connection, where new colors are created by averaging individual pixel values. This is mainly due to the limited bandwidth of luminance and specially chrominance on analog systems. Contrary to artifact colors that are arbitrary, these new colors are completely dependent on the original values of adjacent pixels. Horizontal blurring is more pronounced at higher display resolutions and when saturated colors are used. This effect was exploited by game artists on some machines through the use of dithering patterns.
Machines
PC compatibles with CGA graphic cards
When using IBM's Color Graphics Adapter with a NTSC TV as a composite monitor, the separation between luminance and chrominance is imperfect, yielding cross-color artifacts. This is especially a problem with 80-column text.It is for this reason that each of the text and graphics modes described above exists twice: Once as the normal "color" version and once as a "monochrome" version. The "monochrome" version of each mode turns off the NTSC color decoding in the viewing monitor completely, resulting in a black-and-white picture, but also no color bleeding, hence, a sharper picture. On RGBI monitors, the two versions of each mode are identical, with the exception of the 320×200 graphics mode, where the "monochrome" version produces the third palette.
However, programmers learned 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 colors. Since these new colors are the result of cross-color artifacting, they are often called "artifact colors". Both the standard 320×200 four-color and the 640×200 color-on-black graphics modes could be used with this technique.
Early efforts resulted on a usable resolution of 160×200 with 16 colors.
Actual colors depend on the base palette and resolution used, as shown on the gallery below:
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 80×100 on a composite monitor.
Software support
Many of the more high-profile game titles offers graphics optimized for composite color monitors. Ultima II, the first game in the game series to be ported to IBM PC, uses CGA composite graphics. King's Quest I was also innovative in its use of 16-color graphics. Other titles include Microsoft Decathlon, King's Quest II and King's Quest III.TRS-80 Color Computer
The TRS-80 Color Computer two color 256×192 graphic mode allows the display of four colors by exploiting NTSC artifacts. It is not possible to reliably display 256 dots across the screen due to the limitations of the NTSC signal and the phase relationship between the graphics chip clock and colorburst frequency. Using the first color set, alternating columns of green and black pixels are not distinct and appear as a muddy green color. However, switching to a white and black color set, instead of a muddy gray as expected, the result is either orange or blue. Reversing the order of the alternating dots will give the opposite color. In effect, the 256x192 two color mode becomes a 128×192 four color mode with black, orange, blue, and white available. Most CoCo games used this mode as it generates more useful colors than the ones provided by the native four color modes.| Black | Blue | Orange | White |
The graphics chip internally can power up on either the rising or falling edge of the clock, so the bit patterns that represent orange and blue are not predictable. Most CoCo games start with a title screen and asks the user to press the reset button until the colors are correct.
Readers of The Rainbow or HOT CoCo magazine learned that they can use some
POKE commands to switch the Motorola 6847 graphics chip into one of the artifact modes, while Extended Color BASIC continues to operate as though it were still displaying one of the 128x192 four-color modes. Thus, the entire set of Extended Color BASIC graphics commands can be used with the artifact colors. Some users developed a set of 16 artifact colors using a 4×2 pixel matrix. Use of POKE commands also make these colors available to the graphics commands, although the colors have to be drawn one horizontal line at a time. Some interesting artworks were produced from these effects, especially since the CoCo Max art package provides them in its palette of colors.The resulting 16 color palette is :
| Black | Dark Blue | Purple | Light Gray | Dark Cyan | Azure | Light Blue | Blue-White |
| Brick Red | Olive Green | Orange | Pink-White | Light Violet | Brown | Yellow | White |
The CoCo 3 fixes the clock-edge problem so it is always the same; the user holds the key during reset to alternate the color set. On this computer games can be patched to use a new 128×192 four color mode provided by the Graphics Interrupt Memory Enhancer chip, with hardware colors mapped to the required values.