Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Regulars » StarInfo/Stoner/Rings

StarInfo/Stoner/Rings

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 » Regulars
Filename: StarInfo/Stoner/Rings
Read OK:
File size: 018E bytes
Load address: 0000
Exec address: 0000
File contents
    1REM1 Rotating Circles Demo
    2REM Nigel Stoner.
    3ON ERROR MODE12:REPORT:PRINT" in  ";ERL:END
    4DATA400,300,200,100,50,50
    5t%=RND(-TIME):MODE141:ORIGIN640,512:s%=1:DIMx(4),y(4),r(4),p(4)
    6
    7FORa=0TO4:p(a)=RND(360):READr(a):NEXT:GCOL3,3:REPEATSYS6,112,s%:s%=s%EOR3:SYS6,113,s%:WAIT:CLS:CIRCLEFILL0,0,400:CIRCLEFILL0,0,384:FORa=1TO4:x(a)=(r(a)-r(a-1)+16)*SINRAD(p(a))+x(a-1):y(a)=(r(a)-r(a-1)+16)*COSRAD(p(a))+y(a-1):CIRCLEFILLx(a),y(a),r(a):CIRCLEFILLx(a),y(a),r(a)-16:p(a)+=(a*4)MOD360:NEXT:UNTIL0
�1 Rotating Circles Demo
� Nigel Stoner.
� � �12:�:�" in  ";�:�
�400,300,200,100,50,50
5t%=�(-�):�141:ȑ640,512:s%=1:�x(4),y(4),r(4),p(4)

��a=0�4:p(a)=�(360):�r(a):�:�3,3:�ș6,112,s%:s%=s%�3:ș6,113,s%:Ȗ:�:ȏȐ0,0,400:ȏȐ0,0,384:�a=1�4:x(a)=(r(a)-r(a-1)+16)*��(p(a))+x(a-1):y(a)=(r(a)-r(a-1)+16)*��(p(a))+y(a-1):ȏȐx(a),y(a),r(a):ȏȐx(a),y(a),r(a)-16:p(a)+=(a*4)�360:�:�0
�
00000000  0d 00 01 1c f4 31 20 52  6f 74 61 74 69 6e 67 20  |.....1 Rotating |
00000010  43 69 72 63 6c 65 73 20  44 65 6d 6f 0d 00 02 13  |Circles Demo....|
00000020  f4 20 4e 69 67 65 6c 20  53 74 6f 6e 65 72 2e 0d  |. Nigel Stoner..|
00000030  00 03 1a ee 20 85 20 eb  31 32 3a f6 3a f1 22 20  |.... . .12:.:." |
00000040  69 6e 20 20 22 3b 9e 3a  e0 0d 00 04 1a dc 34 30  |in  ";.:......40|
00000050  30 2c 33 30 30 2c 32 30  30 2c 31 30 30 2c 35 30  |0,300,200,100,50|
00000060  2c 35 30 0d 00 05 35 74  25 3d b3 28 2d 91 29 3a  |,50...5t%=.(-.):|
00000070  eb 31 34 31 3a c8 91 36  34 30 2c 35 31 32 3a 73  |.141:..640,512:s|
00000080  25 3d 31 3a de 78 28 34  29 2c 79 28 34 29 2c 72  |%=1:.x(4),y(4),r|
00000090  28 34 29 2c 70 28 34 29  0d 00 06 04 0d 00 07 f0  |(4),p(4)........|
000000a0  e3 61 3d 30 b8 34 3a 70  28 61 29 3d b3 28 33 36  |.a=0.4:p(a)=.(36|
000000b0  30 29 3a f3 72 28 61 29  3a ed 3a e6 33 2c 33 3a  |0):.r(a):.:.3,3:|
000000c0  f5 c8 99 36 2c 31 31 32  2c 73 25 3a 73 25 3d 73  |...6,112,s%:s%=s|
000000d0  25 82 33 3a c8 99 36 2c  31 31 33 2c 73 25 3a c8  |%.3:..6,113,s%:.|
000000e0  96 3a db 3a c8 8f c8 90  30 2c 30 2c 34 30 30 3a  |.:.:....0,0,400:|
000000f0  c8 8f c8 90 30 2c 30 2c  33 38 34 3a e3 61 3d 31  |....0,0,384:.a=1|
00000100  b8 34 3a 78 28 61 29 3d  28 72 28 61 29 2d 72 28  |.4:x(a)=(r(a)-r(|
00000110  61 2d 31 29 2b 31 36 29  2a b5 b2 28 70 28 61 29  |a-1)+16)*..(p(a)|
00000120  29 2b 78 28 61 2d 31 29  3a 79 28 61 29 3d 28 72  |)+x(a-1):y(a)=(r|
00000130  28 61 29 2d 72 28 61 2d  31 29 2b 31 36 29 2a 9b  |(a)-r(a-1)+16)*.|
00000140  b2 28 70 28 61 29 29 2b  79 28 61 2d 31 29 3a c8  |.(p(a))+y(a-1):.|
00000150  8f c8 90 78 28 61 29 2c  79 28 61 29 2c 72 28 61  |...x(a),y(a),r(a|
00000160  29 3a c8 8f c8 90 78 28  61 29 2c 79 28 61 29 2c  |):....x(a),y(a),|
00000170  72 28 61 29 2d 31 36 3a  70 28 61 29 2b 3d 28 61  |r(a)-16:p(a)+=(a|
00000180  2a 34 29 83 33 36 30 3a  ed 3a fd 30 0d ff        |*4).360:.:.0..|
0000018e