--- title: "2068 User Graphics" id: 80938 type: "computer_media" slug: "2068-user-graphics" url: "http://localhost/computer_media/2068-user-graphics/" markdown_url: "http://localhost/computer_media/2068-user-graphics.md" published_at: "2026-11-26T21:58:25+00:00" modified_at: "2026-11-26T21:58:25+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/2068-user-graphics-1.png" excerpt: "Four user-defined graphics make a little figure run across the TS2068 screen." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Claude Sheldon" slug: "claude-sheldon" taxonomy: "indiv" url: "http://localhost/indiv/claude-sheldon/" genre: - name: "User Defined Graphics" slug: "user-defined-graphics" taxonomy: "genre" url: "http://localhost/type/user-defined-graphics/" media_type: "Program" programmers: - name: "Claude Sheldon" slug: "claude-sheldon" taxonomy: "indiv" url: "http://localhost/indiv/claude-sheldon/" download_url: "https://archive.org/download/timex-sinclair-software-archive/2068%20User%20Graphics%20%281984%29%28Sheldon%2C%20Claude%29%28TS2068%29%28US%29%28Program%29.zip" tsrun_member: "2068 User Graphics (1984)(Sheldon, Claude)(TS2068)(US)(Program)/2068 User Graphics (1984)(Sheldon, Claude)(TS2068)(US)(Program).tap" mediadate: "1984" images: - url: "http://localhost/wp-content/uploads/2026/11/2068-user-graphics-1.png" - url: "http://localhost/wp-content/uploads/2026/11/2068-user-graphics-2.png" - url: "http://localhost/wp-content/uploads/2026/11/2068-user-graphics-3.png" article_media: - id: 42548 title: "2068 User Graphics" type: "article" url: "http://localhost/article/2068-user-graphics/" media_type_tags: "User Defined Graphics" license: false --- # 2068 User Graphics An experiment in TS2068 user-defined graphics. It reads eight DATA lines into four graphics, A to D: a running figure, a standing figure, the runner facing the other way and a crouched shape. Each gets a random ink colour through a CHR$ 16 control code in its string. The figure runs across the middle of the screen to the right, stands at the edge, runs back to the left and ends crouched in the first column. The REM lines explain the method: draw each character on an 8 by 8 grid, add up the bit weights of each row, and put the first rows of all four characters in the first DATA line, the second rows in the second, and so on. The article shows the grid for graphic A. The printed listing has POKE USER in line 30, which the TS2068 does not accept; it is corrected to POKE USR. The letters A to D in quotes stand for the graphics characters, as REM 2 says. Published in The Plotter November 1984 ([2068 User Graphics](https://timexsinclair.com/article/2068-user-graphics/)). ## Source Code ``` 1 REM An experiment in 2068 USR graphics. 2 REM All capitals CHR$ inside quotes are graphics. 10 FOR z=0 TO 7 20 READ a: READ b: READ c: READ d 30 POKE USR "A"+z,a: POKE USR "B"+z,b: POKE USR "C"+z,c: POKE USR "D"+z,d 40 NEXT z 41 REM CHR$ 16+(CHR$ 0 thru CHR$ 9) sets color of USER graphics. 50 LET a$=CHR$ 16+CHR$ (INT (RND*5)+1)+"A" 60 LET b$=CHR$ 16+CHR$ (INT (RND*5)+1)+"B" 70 LET c$=CHR$ 16+CHR$ (INT (RND*5)+1)+"C" 80 LET d$=CHR$ 16+CHR$ (INT (RND*5)+1)+"D" 98 REM There should be 8 data statements. Create USR CHR$ using grid shown below. Add up bit weights and number them 1 to 8 as grid shows. Data statement #1 contains all the 1st bytes, #2 contains all the 2nd bytes, etc. #8 contains all the 8th bytes. 99 REM There should be 8 data statements. Create USR CHR$ using the grid shown below. Add up bit weights and number them 1 TO 8 as grid shows. Data statement #1 contains all the 1st bytes, #2 contains all the 2nd bytes, etc. #8 contains all the 8th bytes. 100 DATA 24,24,24,0 110 DATA 60,60,60,0 120 DATA 152,24,25,0 130 DATA 126,60,126,24 140 DATA 27,60,216,60 150 DATA 120,60,30,60 160 DATA 72,24,18,60 170 DATA 204,60,115,60 200 FOR f=1 TO 30 210 PRINT AT 10,f;" ";c$: PAUSE .5: NEXT f 215 PRINT AT 10,31;b$: PAUSE 10 220 FOR f=30 TO 0 STEP -1 230 PRINT AT 10,f;a$;" ": PAUSE 5 240 NEXT f 250 PRINT AT 10,0;d$ ```