Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras » Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/main/Circles

Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/main/Circles

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 » Acorn User » AU 1997-10 A.adf » Extras
Filename: Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/main/Circles
Read OK:
File size: 008F bytes
Load address: 0000
Exec address: 0000
File contents
/* Circles */
main()
{
 local r;
 mode(28);
 seed(time());
 for(r=500;r>20;r-=10)
   {
    gcol(0,rnd()%16);
    circlefill(640,512,r);
   }
}
00000000  2f 2a 20 43 69 72 63 6c  65 73 20 2a 2f 0a 6d 61  |/* Circles */.ma|
00000010  69 6e 28 29 0a 7b 0a 20  6c 6f 63 61 6c 20 72 3b  |in().{. local r;|
00000020  0a 20 6d 6f 64 65 28 32  38 29 3b 0a 20 73 65 65  |. mode(28);. see|
00000030  64 28 74 69 6d 65 28 29  29 3b 0a 20 66 6f 72 28  |d(time());. for(|
00000040  72 3d 35 30 30 3b 72 3e  32 30 3b 72 2d 3d 31 30  |r=500;r>20;r-=10|
00000050  29 0a 20 20 20 7b 0a 20  20 20 20 67 63 6f 6c 28  |).   {.    gcol(|
00000060  30 2c 72 6e 64 28 29 25  31 36 29 3b 0a 20 20 20  |0,rnd()%16);.   |
00000070  20 63 69 72 63 6c 65 66  69 6c 6c 28 36 34 30 2c  | circlefill(640,|
00000080  35 31 32 2c 72 29 3b 0a  20 20 20 7d 0a 7d 0a     |512,r);.   }.}.|
0000008f