Composite artifact colors
Composite artifact colors is a designation 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.[1][2][3]
This mode was used mainly for games, since it limits the display's effective horizontal resolution. It was most common on the IBM PC (with CGA graphics),[4] TRS-80 Color Computer,[5] Apple II[6] and Atari 8-bit[1] computers, and used famously by the Ultima role-playing video games.[6] Software titles (such as King's Quest for the IBM PC) usually provided an option to select between "RGB mode" and "Color Composite mode".[7]
On PAL displays the effect is also present, but generates more limited colors.[8][9] Depending on the exact PAL system used results will vary (if PAL-M or PAL-N are used, color artifacts similar to NTSC might be possible).
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[10] on machines with a sufficiently high resolution display, like the ZX Spectrum,[11] Mega Drive/Genesis,[12][13] NES/Famicom[14] 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.[15]
Computers such as the Apple II[16] and the CGA[17][18] 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 (as opposed to 858 as later standardized by the ITU-R Recommendation BT.601), 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 (although not individually addressable without an 80 column expansion card[19]), 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.[20]
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.[21]
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 the 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 (specially blue and red). This effect was exploited by game artists on some machines (specially those capable of generating higher resolution graphics but having a limited color palette) through the use of dithering patterns.[11][12][13][14][22][23]
Machines
PC compatibles with CGA graphic cards
When using IBM's Color Graphics Adapter (CGA) 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.[24] 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.[25]
Software support
Many of the more high-profile game titles offers graphics optimized for composite color monitors.[26] 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 (also known as Coco) 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[27][28] or HOT CoCo[29] 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.[30]
The resulting 16 color palette is (approximate colors for illustration purposes only):
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 (GIME) chip, with hardware colors mapped to the required values.
Apple II
Color graphics on the Apple II series uses a quirk of the NTSC television signal standard, which made color display relatively easy and inexpensive to implement.[31]
The Apple II display provides two pixels per NTSC subcarrier cycle. When the color burst reference signal is on and the computer attached to a color display, it can display green by showing one alternating pattern of pixels, magenta with an opposite pattern of alternating pixels, and white by placing two pixels next to each other. Later, blue and orange became available by tweaking the offset of the pixels by half a pixel-width in relation to the color-burst signal. The high-resolution display offers more colors simply by compressing more, narrower pixels into each subcarrier cycle.[32]
The coarse, low-resolution graphics display mode works differently, as it can output a pattern of dots per pixel to offer more color options. These patterns are stored in the character generator ROM and replaces the text character bit patterns when the computer is switched to low-res graphics mode. The text mode and low-res graphics mode uses the same memory region and the same circuitry is used for both.[32]
Black | Dark Gray | Dark Blue | Magenta | Red | Orange | Pink | Yellow |
Light Gray | Dark Green | Brown | Green | Light Green | Blue | Light Blue | White |
An example of full usage of artifact colors on the Apple II is the Dazzle Draw paint program. If seen in monochrome the image is composed of black and white vertical dither patterns,[33] but when seen on NTSC colors appear.[34][35]
Atari 8-bit
Graphics 8 mode on early Atari 8-bit computers that used the Color Television Interface Adaptor (CTIA) chip displayed black or white images at a resolution of 320×192.
Programmers quickly discovered that the odd or even patterns of adjacent black and white pixels in this mode would generate one of two additional colors (blue/brown or olive/pink)[36] and software such as On-Line Systems' The Wizard and the Princess used this side-effect to display up to four colors at maximum resolution. This technique and its technical underpinnings were documented in Appendix D of De Re Atari.[1]
Games such as Lode Runner, Flight Simulator II, and the Ultima series took advantage of this effect to display extra colors.[37]
Variation A | Black | Olive | Pink | White |
Variation B | Black | Brown | Blue | White |
When Atari began shipping computers with the improved Graphic Television Interface Adaptor (GTIA), users found that such programs displayed incorrect colors and required an updated version of the software.[38] In fact, artifact colors were inconsistent across the entire Atari 8-bit product line complicating playfield design but only affected a handful of titles that used this graphics mode. These color differences can be simulated within Altirra-based emulators.
All models with RF or composite output connected to televisions exhibited this effect while those such as the original Atari 800 or later XE series with built-in chroma/luma support additionally displayed images without artifacts when connected to a computer monitor with chroma/luma inputs such as the Commodore 1701 .
For some undocumented reason known only to Atari, they did not enable the chroma pin on the monitor jack of the 800XL although several modifications have been published to incorporate this support.
Other machines
Many first generation MSX computer games use horizontal blurring and dither to generate a palette of 125 simultaneous colors. Companies like Konami, Hal Laboratory or Ponyca used this technique regularly. Sony's Graphic Master Lab[39] paint program allowed these 125 colors to be used in user-created drawings.
Home computers like the Atari ST also have graphics prepared with dithering techniques to take advantage of composite TV connections.
The Mega Drive/Genesis takes advantage of composite video horizontal blurring of vertical dither patterns to simulate transparency effects on many games.[13][22][23] William Kier (the artist on Eternal Champions) stated performing manual dither for the graphics on that game, and that it's likely most games dithered in the same fashion.[40] This effect was used so widely used that it can be simulated on modern hardware clones like the Mega Sg.[41]
The Commodore Amiga, when connected over composite video, suffered from noticeable horizonal blurring, specially affecting colored pixels and smoothing out dithered transitions.[42] This technique was used on most titles. Pixel artist Henk Nieborg mentions using dithering on the 1992 Amiga game Lionheart in order to create additional colors.[40] The technique was also used frequently by British software house The Bitmap Brothers.[40] The special Hold-And-Modify is particularly suited for displaying "high color" TV-like images, taking full advantage of horizontal blurring.
PAL system
Using a composite connection with the PAL TV system also generates new colors, but their number is limited and the results unreliable.[8][9]
Apple II
The Apple II can be modified to output a 50 Hz signal for use in PAL and SECAM regions. However, when connected directly to a display, it results in a black and white picture. "Eurocolor" expansion cards were available that essentially decode NTSC artifacts and re-encode them as PAL or SECAM.[43]
Atari 8-bit
Atari 8-bit machines are capable of generating artifact colors (red, yellow, violet and green) on monochrome modes taking advantage of PAL artifacts.[8] A pinball table called Das Uboat, for Atari 800XL Pinball Construction Set, displays artifact colors when viewed on a PAL TV.[44][45] Another example is Runaround II.[46][47]
Commodore 64
On PAL versions of the Commodore 64, the delay line in the monitor or TV which averages the color hue, but not the brightness, of consecutive screen lines can be used to create seven nonstandard colors by alternating screen lines showing two colors of identical brightness.[48][49][50][51] This is used in the game Mayhem in Monsterland,[52] released in 1993 by Apex Computer Productions, and in Parallaxian.[53]
TRS-80 Color Computer
TRS-80 Color Computer users in PAL countries only see green and purple stripes instead of solid red and blue colors.
ZX Spectrum
The ZX Spectrum resolution is high enough to allow the generation of artifact colors, but the effect was not explored during its commercial lifetime. The 2013 homebrew game Chromatrons Attack demonstrates the effect.[9][54]
References
- ↑ 1.0 1.1 1.2 Crawford, Chris (1982). "De Re Atari - APPENDIX D - TELEVISION ARTIFACTS". https://www.atariarchives.org/dere/chaptD.php.
- ↑ "Engine — ScummVM Documentation documentation". https://docs.scummvm.org/en/v2.5.1/settings/engine.html.
- ↑ "Composite Video: Why it was good then, and why you might even use it today!". https://nicole.express/2021/shouldve-had-field-sequential.html.
- ↑ "Exodus Project / Wiki / CGA Composite". http://sourceforge.net/p/ultima-exodus/wiki/CGA%20Composite/.
- ↑ "256 color mode (composite mode artifacting) - The TRS-80/Tandy Color Computer COCO SuperSite!". http://www.coco3.com/community/2009/02/256-color-mode-composite-mode-artifacting/.
- ↑ 6.0 6.1 "Nerdly Pleasures: The Overlooked Artifact Color Capabilities of non-Apple II Computers". 2013-09-24. http://nerdlypleasures.blogspot.pt/2013/09/the-overlooked-artifact-color.html.
- ↑ "Kings Quest RGB / Composite monitor selection screen". https://upload.wikimedia.org/wikipedia/en/8/80/KQ_CompVsRGB.png.
- ↑ 8.0 8.1 8.2 Goodwin, Joel (October 1991). "Artefacting". New Atari User (52). https://deluxepixel.com/downloads/atari/artifacting.pdf.
- ↑ 9.0 9.1 9.2 "Chromatrons Attack at Spectrum Computing - Sinclair ZX Spectrum games, software and hardware". https://spectrumcomputing.co.uk/entry/31261/ZX-Spectrum/Chromatrons_Attack.
- ↑ Hartnell, Tim (1983). 49 Explosive Games for the ZX Spectrum. Interface. pp. 270. ISBN 9780907563532. https://books.google.com/books?id=kPZaAAAACAAJ.
- ↑ 11.0 11.1 "Rainbird at Spectrum Computing - Sinclair ZX Spectrum games, software and hardware". https://spectrumcomputing.co.uk/entry/17722/ZX-Spectrum/Rainbird.
- ↑ 12.0 12.1 "SGENPT-MIX - Sega Genesis Pseudo Transparency Mixer shader". 4 November 2020. http://forums.libretro.com/t/sgenpt-mix-sega-genesis-pseudo-transparency-mixer-shader/30725.
- ↑ 13.0 13.1 13.2 "Transparency – Raster Scroll Books". https://rasterscroll.com/mdgraphics/graphical-effects/transparency/.
- ↑ 14.0 14.1 "RGB Composite Screenshot Comparison". https://www.chrismcovell.com/gotRGB/rgb_compare.html.
- ↑ Pemberton, Alan. "World Analogue Television Standards and Waveforms - Colour Standards - Choice of Subcarrier Frequency (fSC)". http://www.pembers.freeserve.co.uk/World-TV-Standards/Colour-Standards.html#Subcarrier-Choice.
- ↑ Gayler, Winston D. (1983), The Apple II Circuit Description, Indianapolis, IN: Howard W. Sams & Co., Inc., p. 30, https://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Books/W.%20Gayler%20-%20The%20Apple%20II%20Circuit%20Description.pdf, retrieved 2021-05-03
- ↑ IBM, IBM Color/Graphics Monitor Adapter (Personal Computer Hardware Reference Library), p. 17, http://www.minuszerodegrees.net/oa/OA%20-%20IBM%20Color%20Graphics%20Monitor%20Adapter%20%28CGA%29.pdf, retrieved 2021-05-03
- ↑ Motorola, MC6845 CRT Controller, pp. 4–465, http://dunfield.classiccmp.org/r/6845.pdf, retrieved 2021-05-03
- ↑ Lukazi (2017-03-25). "Double High Resolution Graphics (DHGR) - Pushing Limits". http://lukazi.blogspot.com/2017/03/double-high-resolution-graphics-dhgr.html.
- ↑ Munafo, Robert P. (2020-03-26). "Apple [ Colors"]. https://mrob.com/pub/xapple2/colors.html.
- ↑ VileR (2015-04-15). "CGA in 1024 Colors - a New Mode: the Illustrated Guide". https://int10h.org/blog/2015/04/cga-in-1024-colors-new-mode-illustrated/.
- ↑ 22.0 22.1 "Dithering on the Sega Genesis with Composite Video". https://www.youtube.com/watch?v=x0weL5XDpPs.
- ↑ 23.0 23.1 "RGB Composite Screenshot Comparison". https://www.chrismcovell.com/gotRGB/rgb_compare2.html.
- ↑ "Colour Graphics Adapter Notes". 2006-12-06. http://www.seasip.info/VintagePC/cga.html#ccomp.
- ↑ "CGA in 1024 Colors - a New Mode: the Illustrated Guide.". http://8088mph.blogspot.gr/2015/04/cga-in-1024-colors-new-mode-illustrated.html. A blog entry by the creators of the demo "8088 MPH" explaining this technique.
- ↑ "Nerdly Pleasures: IBM PC Color Composite Graphics". 2013-11-02. http://nerdlypleasures.blogspot.pt/2013/11/ibm-pc-color-composite-graphics.html.
- ↑ Ellers, Ed (July 1984). "In Search Of Artifacts". The Rainbow 3 (12): pp. 190. https://archive.org/details/TheRainbowVol.02No.12July1983/Rainbow%2C%20The/The%20Rainbow%20Vol.%2003%20No.%2012%20-%20July%201984/page/n191/mode/2up.
- ↑ "The Rainbow Vol.02 No.12 - July 1984". https://archive.org/details/TheRainbowVol.02No.12July1983/Rainbow%2C%20The/The%20Rainbow%20Vol.%2002%20No.%2012%20-%20July%201983/mode/2up.
- ↑ MARTIN, DENNIS (July 1983). "MORE COLORS IN PMODE 4". HOT CoCo: pp. 64–73. http://sparksandflames.com/files/HotCoCo-1983-07.pdf.
- ↑ "CoCoMax for TRS-80 Color Computer 2". https://www.youtube.com/watch?v=WxQUsjOvyT4.
- ↑ "HIRES Graphics on Apple II". 14 December 2016. https://www.xtof.info/hires-graphics-apple-ii.html.
- ↑ 32.0 32.1 "Shadertoy". https://www.shadertoy.com/view/llyGzR.
- ↑ "An edited Dazzle Draw screen, this time captured without color.". http://toastytech.com/about/myapdzl3a.png.
- ↑ "Dazzle Draw for the Apple II [Part 01\02"]. https://www.youtube.com/watch?v=YE-RqRpxyRA.
- ↑ "Some kind of pattern image displaying in Dazzle Draw.". http://toastytech.com/about/myapdzl2b.png.
- ↑ "Lr-atari800, 5200, artifacting, BASIC, and other guidance". 28 May 2019. https://retropie.org.uk/forum/topic/22392/lr-atari800-5200-artifacting-basic-and-other-guidance/3.
- ↑ "lr-atari800, 5200, artifacting, BASIC, and other guidance" (in en-GB). 2019-05-28. https://retropie.org.uk/forum/topic/22392/lr-atari800-5200-artifacting-basic-and-other-guidance/2.
- ↑ "The Wizard, the Princess, and the Atari". The Creative Atari. Creative Computing Press. 1983. ISBN 0916688348. http://www.atariarchives.org/creativeatari/The_Wizard_the_Princess_and_the_Atari.php.
- ↑ "Graphic Master Lab (1985, MSX, HAL Laboratory) | Releases | Generation MSX". https://www.generation-msx.nl/software/hal-laboratory/graphic-master-lab/release/449/.
- ↑ 40.0 40.1 40.2 "Dithering for Pixel Artists". 18 January 2021. https://pixelparmesan.com/dithering-for-pixel-artists/.
- ↑ "Analogue Mega Sg review: the best Mega Drive clone for flat panel TVs". 31 March 2019. https://www.eurogamer.net/digitalfoundry-2019-analogue-mega-sg-review.
- ↑ "Video Out | Connecting a Commodore Amiga 1200 to a Modern TV / Monitor". https://www.youtube.com/watch?v=sryNIHhW23w.
- ↑ Espinosa, Christopher (1979), Apple II Reference Manual, Cupertino, CA 95014: Apple Computer, Inc., p. 10, https://archive.org/details/apple-ii-ref-manual/page/n19/mode/2up, retrieved 2021-05-03
- ↑ "Atari 400 800 XL XE U-Boot (Das) : scans, dump, download, screenshots, ads, videos, catalog, instructions, roms". http://www.atarimania.com/game-atari-400-800-xl-xe-u-boot-das_27412.html.
- ↑ "Image from atariage.com forum showing extra colors on the Das Uboat pinball table.". https://atariage.com/forums/uploads/monthly_08_2013/post-3782-0-12056400-1377477316.jpg.
- ↑ "Atari 400 800 XL XE Runaround II : scans, dump, download, screenshots, ads, videos, catalog, instructions, roms". http://www.atarimania.com/game-atari-400-800-xl-xe-runaround-ii_4469.html.
- ↑ "Screen shot showing artifact color adjustment". http://www.atarimania.com/8bit/screens/runaround_ii_2.gif.
- ↑ Woods, Jon (20 May 2021). "Luma-driven graphics on the Commodore 64". https://kodiak64.com/blog/luma-driven-graphics-on-c64.
- ↑ Martin, Michael (19 April 2015). "Variable Screen Placement: The VIC-II's Forbidden Technique". https://bumbershootsoft.wordpress.com/2015/04/19/variable-screen-placement-the-vic-iis-forbidden-technique/.
- ↑ "Old VIC-II Colors and Color Blending". 30 March 2016. https://ilesj.wordpress.com/2016/03/30/old-vic-ii-colors-and-color-blending/.
- ↑ "accurately reproducing the Video Output of a Commodore C64". http://hitmen.c02.at/temp/palstuff/.
- ↑ "Mayhem Development Diary". https://static.kodiak64.com/pdfs/Mayhem_Diary_Complete.pdf.
- ↑ Woods, Jon. "Parallaxian Promo Page (C64 game).". https://kodiak64.com/games/parallaxian.
- ↑ "Guesser's explanation of how the game works". https://spectrumcomputing.co.uk/zxdb/sinclair/entries/0031261/ChromatronsAttack.txt.
Original source: https://en.wikipedia.org/wiki/Composite artifact colors.
Read more |