Lots of Color

Author(s): Randy Kuhn
Publication: The Plotter
Pub Details: The Plotter v2 n10 (Volume 2, Issue 10)
Pages: 4

Program for more than 8 colors:

 10 FOR I=0 TO 7
20 READ A: POKE USR CHR$ 144+I,A
30 NEXT I
32 FOR I=1 TO 704
35 LET D=INT (RND*7): LET G=INT (RND*7)
40 PRINT INK D; PAPER G; CHR$ 144;
50 NEXT I
60 DATA 170,85,170,85,170,85,170,85

Transcription note: the listing is corrected so it runs. As printed, line 20 reads POKE USER, which the TS2068 does not accept, and line 10 loops FOR I=1 TO 8, so the top row of every square stays blank; corrected to POKE USR and FOR I=0 TO 7.

Program makes a checkerboard pattern with paper and ink colors appearing to be mixed, producing new colors.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.