Home » Archimedes archive » Acorn User » AU 1997-12.adf » Regulars » StarInfo/Twine/Twine2
StarInfo/Twine/Twine2
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-12.adf » Regulars |
Filename: | StarInfo/Twine/Twine2 |
Read OK: | ✔ |
File size: | 01FA bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10MODE 31:OFF 20n=500 30max=10000 40DIM x(n),y(n) 50REPEAT 60 CLS 70 REPEAT 80 r=17*RND(1) 90 g=17*RND(1) 100 b=17*RND(1) 101 UNTIL r+g+b>20 110 FOR i=0 TO 15 120 COLOUR i,i*r,i*g,i*b 130 NEXT 140 FOR i=0 TO n-1 150 x(i)=RND(1600+600)-300 160 y(i)=RND(1200+600)-300 170 NEXT 180 black=0 190 REPEAT 200 x0=x(0) 210 y0=y(0) 220 FOR i=0 TO n-1 230 c=POINT(x0,y0) 240 IF c<15 GCOL c+1:POINT x0,y0 ELSE black+=1 250 x1=x((i+1)MODn) 260 y1=y((i+1)MODn) 270 x(i)+=(x1-x0)/50 280 y(i)+=(y1-y0)/50 290 x0=x1 300 y0=y1 310 NEXT 320 UNTIL black>max 330 a=INKEY500 340UNTIL 0
� 31:� n=500 max=10000 (� x(n),y(n) 2� < � F � P r=17*�(1) Z g=17*�(1) d b=17*�(1) e � r+g+b>20 n � i=0 � 15 x � i,i*r,i*g,i*b � � � � i=0 � n-1 � x(i)=�(1600+600)-300 � y(i)=�(1200+600)-300 � � � black=0 � � � x0=x(0) � y0=y(0) � � i=0 � n-1 � c=�x0,y0) �' � c<15 � c+1:Ȓ x0,y0 � black+=1 � x1=x((i+1)�n) y1=y((i+1)�n) x(i)+=(x1-x0)/50 y(i)+=(y1-y0)/50 " x0=x1 , y0=y1 6 � @ � black>max J a=�500 T� 0 �
00000000 0d 00 0a 0a eb 20 33 31 3a 87 0d 00 14 09 6e 3d |..... 31:.....n=| 00000010 35 30 30 0d 00 1e 0d 6d 61 78 3d 31 30 30 30 30 |500....max=10000| 00000020 0d 00 28 0f de 20 78 28 6e 29 2c 79 28 6e 29 0d |..(.. x(n),y(n).| 00000030 00 32 05 f5 0d 00 3c 06 20 db 0d 00 46 06 20 f5 |.2....<. ...F. .| 00000040 0d 00 50 0e 20 72 3d 31 37 2a b3 28 31 29 0d 00 |..P. r=17*.(1)..| 00000050 5a 0e 20 67 3d 31 37 2a b3 28 31 29 0d 00 64 0e |Z. g=17*.(1)..d.| 00000060 20 62 3d 31 37 2a b3 28 31 29 0d 00 65 0f 20 fd | b=17*.(1)..e. .| 00000070 20 72 2b 67 2b 62 3e 32 30 0d 00 6e 0f 20 e3 20 | r+g+b>20..n. . | 00000080 69 3d 30 20 b8 20 31 35 0d 00 78 15 20 20 fb 20 |i=0 . 15..x. . | 00000090 69 2c 69 2a 72 2c 69 2a 67 2c 69 2a 62 0d 00 82 |i,i*r,i*g,i*b...| 000000a0 06 20 ed 0d 00 8c 10 20 e3 20 69 3d 30 20 b8 20 |. ..... . i=0 . | 000000b0 6e 2d 31 0d 00 96 1a 20 20 78 28 69 29 3d b3 28 |n-1.... x(i)=.(| 000000c0 31 36 30 30 2b 36 30 30 29 2d 33 30 30 0d 00 a0 |1600+600)-300...| 000000d0 1a 20 20 79 28 69 29 3d b3 28 31 32 30 30 2b 36 |. y(i)=.(1200+6| 000000e0 30 30 29 2d 33 30 30 0d 00 aa 06 20 ed 0d 00 b4 |00)-300.... ....| 000000f0 0c 20 62 6c 61 63 6b 3d 30 0d 00 be 06 20 f5 0d |. black=0.... ..| 00000100 00 c8 0d 20 20 78 30 3d 78 28 30 29 0d 00 d2 0d |... x0=x(0)....| 00000110 20 20 79 30 3d 79 28 30 29 0d 00 dc 11 20 20 e3 | y0=y(0).... .| 00000120 20 69 3d 30 20 b8 20 6e 2d 31 0d 00 e6 10 20 20 | i=0 . n-1.... | 00000130 20 63 3d b0 78 30 2c 79 30 29 0d 00 f0 27 20 20 | c=.x0,y0)...' | 00000140 20 e7 20 63 3c 31 35 20 e6 20 63 2b 31 3a c8 92 | . c<15 . c+1:..| 00000150 20 78 30 2c 79 30 20 8b 20 62 6c 61 63 6b 2b 3d | x0,y0 . black+=| 00000160 31 0d 00 fa 14 20 20 20 78 31 3d 78 28 28 69 2b |1.... x1=x((i+| 00000170 31 29 83 6e 29 0d 01 04 14 20 20 20 79 31 3d 79 |1).n).... y1=y| 00000180 28 28 69 2b 31 29 83 6e 29 0d 01 0e 17 20 20 20 |((i+1).n).... | 00000190 78 28 69 29 2b 3d 28 78 31 2d 78 30 29 2f 35 30 |x(i)+=(x1-x0)/50| 000001a0 0d 01 18 17 20 20 20 79 28 69 29 2b 3d 28 79 31 |.... y(i)+=(y1| 000001b0 2d 79 30 29 2f 35 30 0d 01 22 0c 20 20 20 78 30 |-y0)/50..". x0| 000001c0 3d 78 31 0d 01 2c 0c 20 20 20 79 30 3d 79 31 0d |=x1..,. y0=y1.| 000001d0 01 36 07 20 20 ed 0d 01 40 10 20 fd 20 62 6c 61 |.6. ...@. . bla| 000001e0 63 6b 3e 6d 61 78 0d 01 4a 0b 20 61 3d a6 35 30 |ck>max..J. a=.50| 000001f0 30 0d 01 54 07 fd 20 30 0d ff |0..T.. 0..| 000001fa