Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199201.adf » January92 » !AWJan92/Goodies/ArcAut/Automatons/FracGrow
!AWJan92/Goodies/ArcAut/Automatons/FracGrow
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199201.adf » January92 |
Filename: | !AWJan92/Goodies/ArcAut/Automatons/FracGrow |
Read OK: | ✔ |
File size: | 01D4 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
AUTOMATON* fractal_growth This Moore neighbourhood automaton grows a family of static fractal structures. Try a 128x128 window. INITIALISATION* 10DEF PROCdo 20*SetEval wrap on 30INPUT "parameter (1-8) ";i 40OSCLI("SetEval i "+STR$i) 50ENDPROC SCREEN* 10DEF PROCdo 20GCOL 63 TINT 255:POINT 0,0 30ENDPROC CODE* ( READ_NEIG dead SCOUNT_NEIG DUP 7 = IF (SUM_NEIG 1 - ==) <i> = IF (dead ==) CELL == ) END*
00000000 41 55 54 4f 4d 41 54 4f 4e 2a 0a 0a 20 20 66 72 |AUTOMATON*.. fr| 00000010 61 63 74 61 6c 5f 67 72 6f 77 74 68 0a 0a 20 20 |actal_growth.. | 00000020 54 68 69 73 20 4d 6f 6f 72 65 20 6e 65 69 67 68 |This Moore neigh| 00000030 62 6f 75 72 68 6f 6f 64 20 61 75 74 6f 6d 61 74 |bourhood automat| 00000040 6f 6e 20 67 72 6f 77 73 20 61 20 66 61 6d 69 6c |on grows a famil| 00000050 79 20 6f 66 20 73 74 61 74 69 63 20 66 72 61 63 |y of static frac| 00000060 74 61 6c 0a 20 20 73 74 72 75 63 74 75 72 65 73 |tal. structures| 00000070 2e 20 54 72 79 20 61 20 31 32 38 78 31 32 38 20 |. Try a 128x128 | 00000080 77 69 6e 64 6f 77 2e 0a 0a 49 4e 49 54 49 41 4c |window...INITIAL| 00000090 49 53 41 54 49 4f 4e 2a 0a 0a 20 20 31 30 44 45 |ISATION*.. 10DE| 000000a0 46 20 50 52 4f 43 64 6f 0a 20 20 32 30 2a 53 65 |F PROCdo. 20*Se| 000000b0 74 45 76 61 6c 20 77 72 61 70 20 6f 6e 0a 20 20 |tEval wrap on. | 000000c0 33 30 49 4e 50 55 54 20 22 70 61 72 61 6d 65 74 |30INPUT "paramet| 000000d0 65 72 20 28 31 2d 38 29 20 22 3b 69 0a 20 20 34 |er (1-8) ";i. 4| 000000e0 30 4f 53 43 4c 49 28 22 53 65 74 45 76 61 6c 20 |0OSCLI("SetEval | 000000f0 69 20 22 2b 53 54 52 24 69 29 0a 20 20 35 30 45 |i "+STR$i). 50E| 00000100 4e 44 50 52 4f 43 0a 0a 53 43 52 45 45 4e 2a 0a |NDPROC..SCREEN*.| 00000110 0a 20 20 31 30 44 45 46 20 50 52 4f 43 64 6f 0a |. 10DEF PROCdo.| 00000120 20 20 32 30 47 43 4f 4c 20 36 33 20 54 49 4e 54 | 20GCOL 63 TINT| 00000130 20 32 35 35 3a 50 4f 49 4e 54 20 30 2c 30 0a 20 | 255:POINT 0,0. | 00000140 20 33 30 45 4e 44 50 52 4f 43 0a 0a 43 4f 44 45 | 30ENDPROC..CODE| 00000150 2a 0a 0a 28 20 52 45 41 44 5f 4e 45 49 47 0a 20 |*..( READ_NEIG. | 00000160 20 64 65 61 64 20 53 43 4f 55 4e 54 5f 4e 45 49 | dead SCOUNT_NEI| 00000170 47 20 44 55 50 0a 20 20 20 20 37 20 3d 20 49 46 |G DUP. 7 = IF| 00000180 20 28 53 55 4d 5f 4e 45 49 47 20 31 20 2d 20 3d | (SUM_NEIG 1 - =| 00000190 3d 29 0a 20 20 3c 69 3e 20 3d 20 49 46 20 28 64 |=). <i> = IF (d| 000001a0 65 61 64 20 20 20 20 20 20 20 20 20 3d 3d 29 0a |ead ==).| 000001b0 20 20 43 45 4c 4c 20 20 20 20 20 20 20 20 20 20 | CELL | 000001c0 20 20 20 20 20 20 20 20 20 3d 3d 20 20 29 0a 0a | == )..| 000001d0 45 4e 44 2a |END*| 000001d4