home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disk User Volume 1 #6
/
Commodore_Disk_User_Vol.1_6_1988_-.d64
/
mandelbrot
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
3KB
|
101 lines
10 print"[147] mandelzoom64"
20 rem copyright d.g.wilkinson feb 1988
30 dn=8:rem device no. 8=disk, 1=tape
40 ifpeek(16384)=76andpeek(16385)=33andpeek(16386)=64goto65
50 print" loading machine code"
60 load"mandel",dn,1
65 :
70 ifpeek(52654)=27andpeek(52655)=51andpeek(52656)=23goto100
80 print" loading multidump code"
90 load"multidump",dn,1
100 gosub 880:rem menu
110 getz$:ifz$=""goto110
120 z=val(z$)
130 ifz<1orz>7goto110
140 ifz=7goto990
150 ifz=6goto470
160 onzgosub190,810,520,670,720
170 goto100
180 :
190 print"[147] mandelzoom64"
200 print" range of acorner = -1.7 to +0.5
210 [153]" range of bcorner = -1.0 to +1.0"
220 [133]" give acorner (x)=";ac
230 [133]" give bcorner (y)=";bc
240 [133]" give length of side=";s1
250 [153]" select size of pattern"
260 [153]" 1 = 200 x 200 pixels"
270 [153]" 2 = 50 x 50 pixels"
280 [153]" pattern size =?";
290 [161] z$:[139]z$[178]""[137]290
300 z[178][197](z$)
310 [139] z[179]1 [176] z[177]2 [167][153]"cmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmd onon":[137]280
320 [153]"z"
330 [139] z[178]1 [167] xs[178]0:ys[178]0:xl[178]200:yl[178]200
340 [139] z[178]2 [167] xs[178]75:ys[178]75:xl[178]50:yl[178]50
350 [151]16413,xs
360 [151]16414,ys
370 [151]16415,xl
380 [151]16416,yl
390 [158]16393:[143] initialise hires
400 [158]16387:[143] clear screen
410 dt[178]s1[173]yl
420 [158]16384,ac,bc,s1,dt
430 [161]z$:[139]z$[178]""[137]430
440 [158]16396:[143] reset to basic
450 [142]
460 :
470 [153]"load mandelzoom64"
480 [153]" input a saved pattern"
490 [133]" give filename";a$
500 [147] a$,dn,1
510 :
520 [153]"load mandelzoom64"
530 [153]" set colours for plotting"
540 [153]" use number keys 1-8.
550 print" colours are shown on keys.
560 [153]" for extended colour range,"
570 [153]" use numbers 9-16."
580 [153]" (do not use ctrl or cbm keys)"
590 [133]" foreground colour no.";c1
600 [139] c1[179]1 [176] c1[177]16 [137]590
610 [133]" close background colour no.";c2
620 [139] c2[179]1 [176] c2[177]16 [137]610
630 c1[178]c1[171]1:c2[178]c2[171]1:c3[178]c1[172]16[170]c2
640 [151]16411,c3
650 [142]
660 :
670 [153]"load mandelzoom64"
680 [153]" save pattern on disk file"
690 [133]" give filename";a$
700 [158]16408 a$,dn,2,8192,16192
710 [142]
720 :
730 [153]"load mandelzoom64"
740 [158]52662
750 [153]" multidump activated"
760 [153]" use f1 for small dump"
770 [153]" use f3 for large dump"
780 [153]" hit any key to return to main menu"
790 [161]z$:[139]z$[178]""[137]790
800 [142]
810 :
820 [158]16393:[143] back to hires
830 [158]16390:[143] set colours
840 [161] a$:[139]a$[178]""[137]840
850 [158]16396:[143] back to basic
860 [142]
870 :
880 [153]"loadstop":[151]53280,3:[151]53281,7
890 [153]" mandelzoom64 - choose option"
900 [153]" 1 plot a new pattern"
910 [153]" 2 switch to hi-resolution"
920 [153]" (hit any key to return)"
930 [153]" 3 change colours"
940 [153]" 4 save existing pattern"
950 [153]" 5 print pattern"
960 [153]" 6 input a saved pattern"
970 [153]" 7 exit"
980 [142]
990 [128]