--- title: "Lots of Color" type: "article" slug: "lots-of-color-2" url: "http://localhost/article/lots-of-color-2/" markdown_url: "http://localhost/article/lots-of-color-2.md" published_at: "2026-11-25T23:10:14+00:00" modified_at: "2026-11-26T23:09:39+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "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…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Randy Kuhn" slug: "randy-kuhn" taxonomy: "indiv" url: "http://localhost/indiv/randy-kuhn/" publication_r: id: 21216 title: "The Plotter" type: "periodical" url: "http://localhost/periodical/the-plotter/" authors: "Randy Kuhn" volume: "2" issue: "10" issues_articles: - id: 39418 title: "The Plotter v2 n10" type: "issue" url: "http://localhost/issue/the-plotter-v2-n10/" pages: "4" archive_link: false article_media: - id: 81057 title: "Lots of Color" type: "computer_media" url: "http://localhost/computer_media/lots-of-color/" --- # Lots of Color 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. ## Source Code: Lots of Color ``` 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 ```