Plots a random number of dots in one quarter of the screen and mirrors them into the other three, making a symmetrical pattern. By Matthew Calveley of Lytham, England.
RUN it and wait about a minute for the pattern. Then press C for a new one or Z to copy the design to a ZX Printer. It needs 2K or more, because the program takes about 1.2K, as the article says. It is as printed: C does not clear the screen, so each new pattern is plotted over the last and the screen gradually fills. For a clean pattern press BREAK, then CLS and RUN.
Published in LISTing September 1993 (Kaleidoscope).
Source Code
10 LET N=INT (RND*250)+200
20 FOR A=1 TO N
30 LET V=INT (RND*22)
40 LET H=INT (RND*32)
50 LET RV=21+(22-V)
60 LET RH=31+(32-H)
70 PLOT H,V
80 PLOT RH,V
90 PLOT RH,RV
100 PLOT H,RV
110 NEXT A
120 POKE 16418,0
130 PRINT AT 23,0;"TYPE C TO RUN,Z TO COPY DESIGN"
140 IF INKEY$="" THEN GOTO 140
150 IF INKEY$="Z" THEN GOTO 180
160 IF INKEY$="C" THEN RUN
170 GOTO 140
180 PRINT AT 23,0;"(32 SPACES)"
190 COPY
200 GOTO 130Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.


