Kaleidoscope

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

A pattern generator written mostly in machine code. It uses the FRAMES counter to pick a starting point in the ROM and reads ROM bytes as random numbers to place graphics characters, mirrored into a symmetrical pattern. The title appears first, then the screen flashes through changing patterns until you press a key. After that each key press prints a copy of the screen and starts a new pattern. BREAK stops it.

To type it in, the article has you enter a loader with the REM in line 1 and POKE in the 144 numbers of Table 1, then replace the loader with the short final program. The download is that final program; it saves itself in line 10, so use GOTO 20 to start it after loading. The editor adds that two printouts taken a moment apart can be viewed as a 3-D image.

Published in Syntax January 1984 (Kaleidoscope).

Related Articles

I resorted to machine code in an effort to write a fast program to display a kaleidoscope pattern on the ZX/TS screen. The resulting images may be viewed on the screen and printed out at will.

Image Gallery

Source Code

   1 REM KALEIDOSCOPEPRESS ANY KEY TO BEGIN                                                                                                                                                 
  10 SAVE "KALEIDOSCOPE"
  20 LET A=USR 16548
  30 COPY
  40 LET A=USR 16601
  50 GOTO 30

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