Boxes

Author(s): Stephen Brothers
Publication: LISTing Newsletter
Date: March 1991
Pages: 6

For the TS 1000/ZX81

BOXES

By Stephen Brothers

BOXES - nested rectangles drawn by the program
BOXES – nested rectangles drawn by the program
 10 REM "BOXES"
20 REM
30 REM BY, STEPHEN BROTHERS
40 SLOW
50 LET G=0
60 LET J=43
70 LET H=63
80 FOR F=G TO H
90 PLOT F,J
100 PLOT F,G
110 NEXT F
120 FOR K=G TO J
130 PLOT H,K
140 PLOT G,K
150 NEXT K
160 LET J=J-2
170 IF J=21 THEN STOP
180 LET H=H-2
190 LET G=G+2
200 GOTO 80

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