Composite Artifact Colours

Year
1979
Type
Component
Category
Technical reference — NTSC video artifacting
Manufacturer
Atari, Inc.
Black GRAPHICS 8 screen with four thin vertical lines in different colours and three filled rectangles, olive, violet and white

Overview

GRAPHICS 8 on the Atari is officially a one-colour mode: 320 pixels across, each either the background or one brighter shade of the same hue. Yet on an American television, careful programs could fill the screen in solid colours from that "monochrome" mode. The colours are artifacts — false colours produced when the television decodes the computer's composite signal — and on NTSC machines they are stable and predictable enough to be used deliberately. Atari documented the effect in De Re Atari's Appendix D ("Television Artifacts", credited to Lane Winner with help from Jim Cox).

How it happens

A composite video signal carries brightness (luminance) as its main waveform and colour as a phase-shifted subcarrier mixed in on top — 3.579545 MHz in NTSC. The Atari's whole timing is built around that subcarrier: one colour clock is one cycle of it, a GRAPHICS 7 (ANTIC mode D) pixel is one colour clock wide, and the CPU clock is exactly half the subcarrier frequency.

The high-resolution modes — ANTIC modes 2 (GRAPHICS 0 text), 3 and F (GRAPHICS 8) — have pixels half a colour clock wide. If the brightness changes every half colour clock, the luminance signal itself contains energy at the colour subcarrier frequency, and the TV cannot tell it apart from real colour information. The result is colour where the computer generated none. Because the NTSC pixel clock is locked to the subcarrier, the false colour is stable:

Pattern within one colour clock Result
Left half lit, right half dark Artifact colour A
Left half dark, right half lit Artifact colour B (the "opposite" of A)
Both halves lit Colour C — the plain foreground
A pixel of A beside a pixel of B Colour D

So with artifacting, these one-colour modes can show four colours at an effective 160-pixel resolution. The Atari also never filters chroma-like frequencies out of its luminance, and it produces a whole number of colour cycles per line, so a TV's comb filter cannot cancel the effect.

Which colours?

That depends on the machine. The hue is set by the timing offset between the luminance and the colour burst, which varies with each model's video circuitry; the most common pairs are blue/green on 800s, purple/green on XLs and red/blue on XEs. The GTIA colour adjustment pot does not change them: it does not affect hue 1, which doubles as the colour burst. The display matters too: artifact colours are so saturated that monitors and TVs clip them differently, so the same Atari can look blue/green on a TV and purple/green on a monitor. The early-1980s advice was blunt: colours "cannot be described as absolute colors", only as distinct from each other.

Trying it

This short Atari BASIC demo from De Re Atari draws lines in all four artifact colours and fills areas with three of them. POKE 87,7 makes the OS plot GRAPHICS 8 as if it were the four-colour GRAPHICS 7, so COLOR 1 and 2 select the two half-clock patterns:

10 GRAPHICS 8:POKE 87,7:POKE 710,0:POKE 709,14
20 COLOR 1:PLOT 10,5:DRAWTO 10,70
30 PLOT 40,5:DRAWTO 40,70
40 COLOR 2:PLOT 20,5:DRAWTO 20,70
50 PLOT 41,5:DRAWTO 41,70
60 COLOR 3:PLOT 30,5:DRAWTO 30,70
70 FOR X=1 TO 3:COLOR X:POKE 765,X
80 PLOT X*25+60,5:DRAWTO X*25+60,70
90 DRAWTO X*25+40,70:POSITION X*25+40,5
100 XIO 18,#6,12,0,"S:"
110 NEXT X

PAL, SECAM and S-video

  • PAL: the hi-res pixel rate (about 7.08 MHz) has no simple relationship with the 4.43 MHz PAL subcarrier, so you may see fringing but no stable artifact colours. Software that relies on artifacting looks monochrome or stripy in Europe.
  • SECAM: colour is frequency-modulated rather than carried on a subcarrier, so there is no artifacting at all.
  • Separate luma/chroma (S-video) never mixes the two signals, so even an NTSC Atari shows no artifacts. Owners who connect an 800, later PAL 800XL or XE through Y/C get a sharper picture but lose artifact colours.

Emulation and today's displays

Altirra and Atari800 both offer NTSC artifact emulation (switch it on for software written to use artifact colours). On real hardware, use composite or RF rather than S-video when you want the effect; modern upscalers and LCD TVs differ widely in how faithfully they reproduce it.

Credits