Multicolour Artifact Font
- Type
- Graphics
- Category
- Character set / artifacting demo
- Author
- John Anderson
- Published in
- The Creative Atari (Creative Computing Press, 1983), "The Upstart Atari", Figure 1
- Year
- 1983
- Language
- Atari BASIC
- Requirements
- Any Atari 8-bit with Atari BASIC; an NTSC machine and colour TV/monitor for the colour effect
About the program
In his "Upstart Atari" column, reprinted in The Creative Atari, John Anderson included a short program with what he called "a very neat result": a multicoloured character set in plain GRAPHICS 0. On an NTSC Atari, the hi-res text pixels are half a colour clock wide. If a character is drawn using only every other pixel column, the TV shows it as colour instead of white. That is the same "artifacting" that puts red and blue fringes on GRAPHICS 8 lines. Anderson designed a slim, slightly taller-than-normal upper-case alphabet three pixels wide and stored it twice. One copy is shifted by one pixel, so capitals come out in one colour and lower-case letters (which show the same capital shapes) in the other.
He credits the idea to Paul Lutus's 3-D Supergraphics and Synapse's Page Six tutorial, and says he designed the font with Sheldon Leemon's Instedit.
What you need
- Any Atari 8-bit with Atari BASIC.
- An NTSC machine and a colour TV or composite monitor to see the colours. On PAL machines, or through S-video/RGB, the letters simply look thin and white. In an emulator, choose NTSC and turn on artifacting.
Typing it in
The 18 DATA lines are long but plain ASCII. They hold 208 bytes for the capitals (lines 10150–10230) and 208 for the lower case (10240–10320). Each group of eight numbers is one letter, from A to Z. Check the counts if letters come out scrambled. The program ends with END in line 10140, so it is easy to turn into a subroutine. Anderson suggests adding a RETURN and calling it with GOSUB 10000.
How to use it
RUN it. "character set LOADING" appears and you watch the letters change shape as the new data arrives. Line 10070 switches to the RAM font before it is loaded, on purpose. Then type anything in capitals and lower case. Anderson notes that GTIA machines show blue capitals and red lower case, and CTIA machines show the reverse. Try inverse characters too, and LIST a program in the new font.
How it works
- Lines 10000–10020 lower RAMTOP (106) by 8 pages, and line 10030 re-opens GRAPHICS 0 below it. Line 10040 makes the background black, which the artifact colours need.
- Lines 10090–10110 copy the 1024-byte ROM font (CHBAS, 756 × 256) into RAM. Line 10070 has already pointed CHBAS at the RAM copy.
- Line 10120 overwrites bytes 264–471 of the font. That is internal codes 33–58, the capitals A–Z (8 bytes each). Line 10130 does the same for 776–983, the lower-case a–z.
- The capital data uses bit patterns such as 168 (10101000) and 136 (10001000). The lower-case data is the same with every byte halved (84 = 01010100, 68 = 01000100), which moves each lit pixel to the other phase of the colour clock and so gives the other colour.
Variations to try
- Redesign a letter on graph paper using only alternate columns, and replace its eight numbers.
- Anderson suggests changing the display list to show the fonts in other colours. Remember that artifact colours also depend on the background and border settings.
Listing
10000 MT=PEEK(106)
10010 GT=MT-8
10020 POKE 106,GT
10030 GRAPHICS 0
10040 SETCOLOR 2,0,0
10050 CROM=PEEK(756)*256
10060 CRAM=GT*256
10070 POKE 756,GT
10080 ? "character set LOADING"
10090 FOR N=0 TO 1023
10100 POKE CRAM+N,PEEK(CROM+N)
10110 NEXT N
10120 FOR N=264 TO 471:READ A:POKE CRAM+N,A:NEXT N
10130 FOR N=776 TO 983:READ A:POKE CRAM+N,A:NEXT N
10140 ? :? "CHARACTER SET loaded":END
10150 DATA 32,168,136,136,168,136,136,0,160,136,136,160,136,136,160,0,168,136,128,128,128,136,168,0
10160 DATA 160,136,136,136,136,136,160,0,168,128,128,168,128,128,168,0,168,128,128,168,128,128,128,0
10170 DATA 168,136,128,138,136,136,168,0,136,136,136,168,136,136,136,0,168,32,32,32,32,32,168,0
10180 DATA 8,8,8,8,136,136,168,0,136,136,136,160,136,136,136,0,128,128,128,128,128,128,168,0
10190 DATA 136,168,168,136,136,136,136,0,136,136,168,168,168,168,136,0,168,136,136,136,136,136,168,0
10200 DATA 160,136,136,160,128,128,128,0,168,136,136,136,136,136,168,10,160,136,136,160,136,136,136,0
10210 DATA 168,136,128,168,8,136,168,0,168,32,32,32,32,32,32,0,136,136,136,136,136,136,168,0
10220 DATA 136,136,136,136,136,136,32,0,136,136,136,136,168,168,136,0,136,136,136,32,32,136,136,0
10230 DATA 136,136,136,32,32,32,32,0,168,8,8,32,128,128,168,0
10240 DATA 16,84,68,68,84,68,68,0,80,68,68,80,68,68,80,0,84,68,64,64,64,68,84,0
10250 DATA 80,68,68,68,68,68,80,0,84,64,64,84,64,64,84,0,84,64,64,84,64,64,64,0
10260 DATA 84,68,64,69,68,68,84,0,68,68,68,84,68,68,68,0,84,16,16,16,16,16,84,0
10270 DATA 4,4,4,4,68,68,84,0,68,68,68,80,68,68,68,0,64,64,64,64,64,64,84,0
10280 DATA 68,84,84,68,68,68,68,0,68,68,84,84,84,84,68,0,84,68,68,68,68,68,84,0
10290 DATA 80,68,68,80,64,64,64,0,84,68,68,68,68,68,84,5,80,68,68,80,68,68,68,0
10300 DATA 84,68,64,84,4,68,84,0,84,16,16,16,16,16,16,0,68,68,68,68,68,68,84,0
10310 DATA 68,68,68,68,68,68,16,0,68,68,68,68,84,84,68,0,68,68,68,16,16,68,68,0
10320 DATA 68,68,68,16,16,16,16,0,84,4,4,16,64,64,84,0
Credits
- Program listing: Multicolour Artifact Font — program listing (The Creative Atari (Creative Computing Press, 1983), "The Upstart Atari", Figure 1) — John Anderson
- The Creative Atari — The Upstart Atari (atariarchives.org) — John Anderson
