Symmetry

Date: 1984
Type: Program
Platform(s): ZX81, TS 1000
Tags: Graphics

A short graphics program for the ZX81 or TS1000. It plots random points eight at a time, mirrored across both diagonals and both centre lines of a 40 by 40 square, so that a symmetrical pattern like a snowflake or a kaleidoscope builds up. Press any key to clear the screen and start a new pattern.

Runs in 1K. The article suggests trying it on the TS2068 too, where it runs as printed but draws a much smaller pattern.

The Plotter reprinted this program from ZX Computing, the British magazine, and thanks Simon Mills for it; the issue is not given.

Published in The Plotter April 1984 (SYMMETRY).

Image Gallery

Source Code

   5 LET C=40
  10 CLS
  20 LET A=RND*20
  30 LET B=RND*20
  40 PLOT A,B
  50 PLOT B,A
  60 PLOT C-A,C-B
  70 PLOT C-B,C-A
  80 PLOT A,C-B
  90 PLOT B,C-A
 100 PLOT C-A,B
 110 PLOT C-B,A
 120 IF INKEY$="" THEN GOTO 20
 130 RUN

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