Home » Archimedes archive » Archimedes World » AW-1991-05.adf » May91 » !AWMay91/Goodies/RugWorld/!RugWorld/!ReadMe

!AWMay91/Goodies/RugWorld/!RugWorld/!ReadMe

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 » Archimedes archive » Archimedes World » AW-1991-05.adf » May91
Filename: !AWMay91/Goodies/RugWorld/!RugWorld/!ReadMe
Read OK:
File size: 04D4 bytes
Load address: 0000
Exec address: 0000
File contents
RugWorld (C) B.Moseley Nov 1990
*******************************

RugWorld is a cellular automaton programmed in ARM
code for the Archimedes.
It operates on an 80 x 64 grid of 'cells', each of
which can be in 256 different states - represented
by different colours.
Once started, the rugs will swirl with patterns of
constantly changing and interacting colour
competing for space.
The program will load up any 80x64 Mode 13 sprite,
from the <Rugs$Dir> directory (by default inside
the application itself). Three demonstration rugs
are supplied - these may be edited in !Paint if
desired.
Once the program is run, a catalogue of the Rug
directory will be shown & filename asked for.
The user is then prompted for 2 numbers. The first
is an increment to be added to the average of the
neighbours of any cell. The second is a mask which
is ANDed to the result. (A value of 255 leaves the
average/increment unchanged).
The rug will then be loaded and animated. Press
ESCAPE to restart.

Some values to try:
Inc             1,2,3,255,0
Msk             255,63,31,15

Have Fun!

P.S. Two versions of the program are included on
the disc. In one - !RugWldG, the cells are
separated by a black grid. This, in my oppinion
gives an enhanced effect.
00000000  52 75 67 57 6f 72 6c 64  20 28 43 29 20 42 2e 4d  |RugWorld (C) B.M|
00000010  6f 73 65 6c 65 79 20 4e  6f 76 20 31 39 39 30 0a  |oseley Nov 1990.|
00000020  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000030  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 0a  |***************.|
00000040  0a 52 75 67 57 6f 72 6c  64 20 69 73 20 61 20 63  |.RugWorld is a c|
00000050  65 6c 6c 75 6c 61 72 20  61 75 74 6f 6d 61 74 6f  |ellular automato|
00000060  6e 20 70 72 6f 67 72 61  6d 6d 65 64 20 69 6e 20  |n programmed in |
00000070  41 52 4d 0a 63 6f 64 65  20 66 6f 72 20 74 68 65  |ARM.code for the|
00000080  20 41 72 63 68 69 6d 65  64 65 73 2e 0a 49 74 20  | Archimedes..It |
00000090  6f 70 65 72 61 74 65 73  20 6f 6e 20 61 6e 20 38  |operates on an 8|
000000a0  30 20 78 20 36 34 20 67  72 69 64 20 6f 66 20 27  |0 x 64 grid of '|
000000b0  63 65 6c 6c 73 27 2c 20  65 61 63 68 20 6f 66 0a  |cells', each of.|
000000c0  77 68 69 63 68 20 63 61  6e 20 62 65 20 69 6e 20  |which can be in |
000000d0  32 35 36 20 64 69 66 66  65 72 65 6e 74 20 73 74  |256 different st|
000000e0  61 74 65 73 20 2d 20 72  65 70 72 65 73 65 6e 74  |ates - represent|
000000f0  65 64 0a 62 79 20 64 69  66 66 65 72 65 6e 74 20  |ed.by different |
00000100  63 6f 6c 6f 75 72 73 2e  0a 4f 6e 63 65 20 73 74  |colours..Once st|
00000110  61 72 74 65 64 2c 20 74  68 65 20 72 75 67 73 20  |arted, the rugs |
00000120  77 69 6c 6c 20 73 77 69  72 6c 20 77 69 74 68 20  |will swirl with |
00000130  70 61 74 74 65 72 6e 73  20 6f 66 0a 63 6f 6e 73  |patterns of.cons|
00000140  74 61 6e 74 6c 79 20 63  68 61 6e 67 69 6e 67 20  |tantly changing |
00000150  61 6e 64 20 69 6e 74 65  72 61 63 74 69 6e 67 20  |and interacting |
00000160  63 6f 6c 6f 75 72 0a 63  6f 6d 70 65 74 69 6e 67  |colour.competing|
00000170  20 66 6f 72 20 73 70 61  63 65 2e 0a 54 68 65 20  | for space..The |
00000180  70 72 6f 67 72 61 6d 20  77 69 6c 6c 20 6c 6f 61  |program will loa|
00000190  64 20 75 70 20 61 6e 79  20 38 30 78 36 34 20 4d  |d up any 80x64 M|
000001a0  6f 64 65 20 31 33 20 73  70 72 69 74 65 2c 0a 66  |ode 13 sprite,.f|
000001b0  72 6f 6d 20 74 68 65 20  3c 52 75 67 73 24 44 69  |rom the <Rugs$Di|
000001c0  72 3e 20 64 69 72 65 63  74 6f 72 79 20 28 62 79  |r> directory (by|
000001d0  20 64 65 66 61 75 6c 74  20 69 6e 73 69 64 65 0a  | default inside.|
000001e0  74 68 65 20 61 70 70 6c  69 63 61 74 69 6f 6e 20  |the application |
000001f0  69 74 73 65 6c 66 29 2e  20 54 68 72 65 65 20 64  |itself). Three d|
00000200  65 6d 6f 6e 73 74 72 61  74 69 6f 6e 20 72 75 67  |emonstration rug|
00000210  73 0a 61 72 65 20 73 75  70 70 6c 69 65 64 20 2d  |s.are supplied -|
00000220  20 74 68 65 73 65 20 6d  61 79 20 62 65 20 65 64  | these may be ed|
00000230  69 74 65 64 20 69 6e 20  21 50 61 69 6e 74 20 69  |ited in !Paint i|
00000240  66 0a 64 65 73 69 72 65  64 2e 0a 4f 6e 63 65 20  |f.desired..Once |
00000250  74 68 65 20 70 72 6f 67  72 61 6d 20 69 73 20 72  |the program is r|
00000260  75 6e 2c 20 61 20 63 61  74 61 6c 6f 67 75 65 20  |un, a catalogue |
00000270  6f 66 20 74 68 65 20 52  75 67 0a 64 69 72 65 63  |of the Rug.direc|
00000280  74 6f 72 79 20 77 69 6c  6c 20 62 65 20 73 68 6f  |tory will be sho|
00000290  77 6e 20 26 20 66 69 6c  65 6e 61 6d 65 20 61 73  |wn & filename as|
000002a0  6b 65 64 20 66 6f 72 2e  0a 54 68 65 20 75 73 65  |ked for..The use|
000002b0  72 20 69 73 20 74 68 65  6e 20 70 72 6f 6d 70 74  |r is then prompt|
000002c0  65 64 20 66 6f 72 20 32  20 6e 75 6d 62 65 72 73  |ed for 2 numbers|
000002d0  2e 20 54 68 65 20 66 69  72 73 74 0a 69 73 20 61  |. The first.is a|
000002e0  6e 20 69 6e 63 72 65 6d  65 6e 74 20 74 6f 20 62  |n increment to b|
000002f0  65 20 61 64 64 65 64 20  74 6f 20 74 68 65 20 61  |e added to the a|
00000300  76 65 72 61 67 65 20 6f  66 20 74 68 65 0a 6e 65  |verage of the.ne|
00000310  69 67 68 62 6f 75 72 73  20 6f 66 20 61 6e 79 20  |ighbours of any |
00000320  63 65 6c 6c 2e 20 54 68  65 20 73 65 63 6f 6e 64  |cell. The second|
00000330  20 69 73 20 61 20 6d 61  73 6b 20 77 68 69 63 68  | is a mask which|
00000340  0a 69 73 20 41 4e 44 65  64 20 74 6f 20 74 68 65  |.is ANDed to the|
00000350  20 72 65 73 75 6c 74 2e  20 28 41 20 76 61 6c 75  | result. (A valu|
00000360  65 20 6f 66 20 32 35 35  20 6c 65 61 76 65 73 20  |e of 255 leaves |
00000370  74 68 65 0a 61 76 65 72  61 67 65 2f 69 6e 63 72  |the.average/incr|
00000380  65 6d 65 6e 74 20 75 6e  63 68 61 6e 67 65 64 29  |ement unchanged)|
00000390  2e 0a 54 68 65 20 72 75  67 20 77 69 6c 6c 20 74  |..The rug will t|
000003a0  68 65 6e 20 62 65 20 6c  6f 61 64 65 64 20 61 6e  |hen be loaded an|
000003b0  64 20 61 6e 69 6d 61 74  65 64 2e 20 50 72 65 73  |d animated. Pres|
000003c0  73 0a 45 53 43 41 50 45  20 74 6f 20 72 65 73 74  |s.ESCAPE to rest|
000003d0  61 72 74 2e 0a 0a 53 6f  6d 65 20 76 61 6c 75 65  |art...Some value|
000003e0  73 20 74 6f 20 74 72 79  3a 0a 49 6e 63 20 20 20  |s to try:.Inc   |
000003f0  20 20 20 20 20 20 20 20  20 20 31 2c 32 2c 33 2c  |          1,2,3,|
00000400  32 35 35 2c 30 0a 4d 73  6b 20 20 20 20 20 20 20  |255,0.Msk       |
00000410  20 20 20 20 20 20 32 35  35 2c 36 33 2c 33 31 2c  |      255,63,31,|
00000420  31 35 0a 0a 48 61 76 65  20 46 75 6e 21 0a 0a 50  |15..Have Fun!..P|
00000430  2e 53 2e 20 54 77 6f 20  76 65 72 73 69 6f 6e 73  |.S. Two versions|
00000440  20 6f 66 20 74 68 65 20  70 72 6f 67 72 61 6d 20  | of the program |
00000450  61 72 65 20 69 6e 63 6c  75 64 65 64 20 6f 6e 0a  |are included on.|
00000460  74 68 65 20 64 69 73 63  2e 20 49 6e 20 6f 6e 65  |the disc. In one|
00000470  20 2d 20 21 52 75 67 57  6c 64 47 2c 20 74 68 65  | - !RugWldG, the|
00000480  20 63 65 6c 6c 73 20 61  72 65 0a 73 65 70 61 72  | cells are.separ|
00000490  61 74 65 64 20 62 79 20  61 20 62 6c 61 63 6b 20  |ated by a black |
000004a0  67 72 69 64 2e 20 54 68  69 73 2c 20 69 6e 20 6d  |grid. This, in m|
000004b0  79 20 6f 70 70 69 6e 69  6f 6e 0a 67 69 76 65 73  |y oppinion.gives|
000004c0  20 61 6e 20 65 6e 68 61  6e 63 65 64 20 65 66 66  | an enhanced eff|
000004d0  65 63 74 2e                                       |ect.|
000004d4