I want to apologize to any of you who went to the trouble to type in this program out of the last issue of The Plotter and found that it would not run! I guarantee that this time it will run for you. Please try it again and see.
I have played with it a little and have put together a couple of alterations that you may enjoy trying.
After typing in the listing and running it, BREAK to BASIC and try changing the display in one of the following ways:
Try adding “:CLS” to the end of Line 280, PRETTY FLASHY, HUH!
Try deleting the “:CLS” from Line 70. WATCH THIS ONE IF YOU CAN!!
Be sure to try some of the direction changes as described in the documentation in last months’ Plotter.
I think that you will enjoy this one. Try the changes and try some of your own.
HAVE FUN!!!
5 PAPER 0: BORDER 0
10 FOR a=65510 TO 65521: READ byte: POKE a,byte: NEXT a
20 FOR a=65522 TO 65533: READ byte: POKE a,byte: NEXT a
30 LET p2=PI/2: LET sp=p2/9
40 LET ep=sp/5: LET dt=PI/15
50 LET b=1
60 FOR v=1 TO 5
70 INK 7: CLS
80 PRINT AT 21,5;"...constructing view#";v
90 LET dp=ep*v
100 FOR i=dp TO PI STEP sp
110 LET a=COS (i)
120 LET first=1
130 FOR t=0 TO PI STEP dt
140 LET x=a*SIN (t)
150 LET y=b*COS (t)
160 LET px=x*60+127
170 LET py=y*60+115
180 IF first THEN PLOT px,py: LET first=0
190 IF NOT first THEN DRAW (px-(PEEK 23677)),(py-(PEEK 23678))
200 NEXT t
210 NEXT i
220 PRINT AT 21,0;" "
230 READ code
240 POKE 65512,code
250 RANDOMIZE USR 65510
260 NEXT v
268 CLS
270 RESTORE 420
280 FOR v=1 TO 5
290 READ code
300 POKE 65527,code
310 RANDOMIZE USR 65522
320 NEXT v
330 GO TO 270
400 DATA 17,208,0,33,0,64,1,0,16,237,176,201
410 DATA 17,0,64,33,208,0,1,0,16,237,176,201
420 DATA 132,148,164,180,196
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.