--- title: "Ricochet" id: 79501 type: "computer_media" slug: "ricochet" url: "http://localhost/computer_media/ricochet/" markdown_url: "http://localhost/computer_media/ricochet.md" published_at: "2026-11-22T14:40:54+00:00" modified_at: "2026-11-22T14:40:54+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/ricochet-1.png" excerpt: "A bouncing-point pattern program for the 1K ZX81." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "James John Hollandsworth" slug: "james-john-hollandsworth" taxonomy: "indiv" url: "http://localhost/indiv/james-john-hollandsworth/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Program" programmers: - name: "James John Hollandsworth" slug: "james-john-hollandsworth" taxonomy: "indiv" url: "http://localhost/indiv/james-john-hollandsworth/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Ricochet%20%281991%29%28Hollandsworth%2C%20James%20J.%29%28TS1000%29%28Program%29.zip" mediadate: "1991" images: - url: "http://localhost/wp-content/uploads/2026/11/ricochet-1.png" - url: "http://localhost/wp-content/uploads/2026/11/ricochet-2.png" - url: "http://localhost/wp-content/uploads/2026/11/ricochet-3.png" article_media: - id: 46182 title: "Ricochet" type: "article" url: "http://localhost/article/ricochet/" media_type_tags: "Graphics" license: false --- # Ricochet A pattern program that fits in 1K: a point starts at a random place and speed and bounces around inside a box, leaving a trail that builds into a woven pattern. RUN it and watch. It runs until you press BREAK. Published in LISTing October 1991 ([Ricochet](https://timexsinclair.com/article/ricochet/)). ## Source Code ``` 3 LET N=CODE "H" 4 LET A=CODE "E" 5 LET G=NOT PI 6 LET E=RND*VAL "4"-VAL "2" 7 LET M=RND*VAL "4"-VAL "2" 8 LET X=RND*N 9 LET Y=RND*A 10 PLOT X,Y 13 LET X=X+E 14 LET Y=Y+M 15 IF XN THEN LET X=N 18 IF Y>A THEN LET Y=A 19 IF X=G OR X=N THEN LET E=-E 20 IF Y=G OR Y=A THEN LET M=-M 21 GOTO PI*PI ```