Home » Archimedes archive » Acorn User » AU 1997-02 B.adf » Regulars » StarInfo/circles/Jeffs/Jellyfish2
StarInfo/circles/Jeffs/Jellyfish2
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-02 B.adf » Regulars |
Filename: | StarInfo/circles/Jeffs/Jellyfish2 |
Read OK: | ✔ |
File size: | 03D7 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM Acorn User circle challenge 20REM Jellyfish - by R W Jeffs 30: 40MODE 27:OFF 50cx%=640:cy%=480:F%=1024 60REPEAT:CLS 70 FOR C%=1 TO 7:GCOL0,C%:CIRCLEFILL cx%,cy%,200*COS(RAD(80*C%/15)):NEXT 80 FOR C%=8 TO 15:GCOL0,16-C%:CIRCLEFILL cx%,cy%,200*COS(RAD(80*C%/15)):NEXT 90 FOR A%=0 TO 359 STEP 60 100 PROCtentacle(SIN(RAD(A%))*40,COS(RAD(A%))*40,RND(3),RND(3),RND(3)*10,RND(3)*10) 110 NEXT 120PROCwriggle 130UNTIL FALSE 140END 150: 160REM Tentacle creation - it was trial and error to get the tentacles to thin out. 170: 180DEF PROCtentacle(X%,Y%,W1%,W2%,A1%,A2%) 190LOCAL T%,Z%,thin,R%,x%,y%,coloff% 200coloff%=RND(8) 210FOR T%=1 TO 800 220 Z%=900-T% 230 col%=(T% DIV 3) MOD 15+1 240 col%+=coloff%:IF col%>15 col%-=15 250 GCOL0,col% 260 thin=COS(RAD(7+80*T%/800)) 270 R%=15*thin/Z%*F% 280 x%=X%+SIN(RAD(T%*W1%))*A1% 290 y%=Y%+COS(RAD(T%*W2%))*A2% 300 x%=x%/Z%*F%+cx%:y%=y%/Z%*F%+cy% 310 CIRCLEFILL x%,y%,R% 320NEXT 330ENDPROC 340: 350DEF PROCwriggle 360LOCAL A% 370C%=1 380REPEAT:WAIT 390 FOR A%=1 TO 15 400 COLOUR A%,0,(SIN(RAD(A%*360/15+C%))+1)/2*127+64,(SIN(RAD(A%*360/15+C%))+1)/2*127+64 410 NEXT 420 C%+=5:IF C%>=360 C%-=360 430UNTILINKEY(-99) 440ENDPROC
"� Acorn User circle challenge � Jellyfish - by R W Jeffs : ( � 27:� 2cx%=640:cy%=480:F%=1024 <�:� F7 � C%=1 � 7:�0,C%:ȏȐ cx%,cy%,200*�(�(80*C%/15)):� P; � C%=8 � 15:�0,16-C%:ȏȐ cx%,cy%,200*�(�(80*C%/15)):� Z � A%=0 � 359 � 60 dB �tentacle(�(�(A%))*40,�(�(A%))*40,�(3),�(3),�(3)*10,�(3)*10) n � x�wriggle �� � �� �: �S� Tentacle creation - it was trial and error to get the tentacles to thin out. �: �&� �tentacle(X%,Y%,W1%,W2%,A1%,A2%) �!� T%,Z%,thin,R%,x%,y%,coloff% �coloff%=�(8) �� T%=1 � 800 � Z%=900-T% � col%=(T% � 3) � 15+1 �% col%+=coloff%:� col%>15 col%-=15 � �0,col% thin=�(�(7+80*T%/800)) R%=15*thin/Z%*F% x%=X%+�(�(T%*W1%))*A1% " y%=Y%+�(�(T%*W2%))*A2% ,$ x%=x%/Z%*F%+cx%:y%=y%/Z%*F%+cy% 6 ȏȐ x%,y%,R% @� J� T: ^� �wriggle h� A% rC%=1 |�:Ȗ � � A%=1 � 15 �L � A%,0,(�(�(A%*360/15+C%))+1)/2*127+64,(�(�(A%*360/15+C%))+1)/2*127+64 � � � C%+=5:� C%>=360 C%-=360 ���(-99) �� �
00000000 0d 00 0a 22 f4 20 20 41 63 6f 72 6e 20 55 73 65 |...". Acorn Use| 00000010 72 20 63 69 72 63 6c 65 20 63 68 61 6c 6c 65 6e |r circle challen| 00000020 67 65 0d 00 14 1f f4 20 20 4a 65 6c 6c 79 66 69 |ge..... Jellyfi| 00000030 73 68 20 2d 20 62 79 20 52 20 57 20 4a 65 66 66 |sh - by R W Jeff| 00000040 73 0d 00 1e 05 3a 0d 00 28 0a eb 20 32 37 3a 87 |s....:..(.. 27:.| 00000050 0d 00 32 1b 63 78 25 3d 36 34 30 3a 63 79 25 3d |..2.cx%=640:cy%=| 00000060 34 38 30 3a 46 25 3d 31 30 32 34 0d 00 3c 07 f5 |480:F%=1024..<..| 00000070 3a db 0d 00 46 37 20 e3 20 43 25 3d 31 20 b8 20 |:...F7 . C%=1 . | 00000080 37 3a e6 30 2c 43 25 3a c8 8f c8 90 20 63 78 25 |7:.0,C%:.... cx%| 00000090 2c 63 79 25 2c 32 30 30 2a 9b 28 b2 28 38 30 2a |,cy%,200*.(.(80*| 000000a0 43 25 2f 31 35 29 29 3a ed 0d 00 50 3b 20 e3 20 |C%/15)):...P; . | 000000b0 43 25 3d 38 20 b8 20 31 35 3a e6 30 2c 31 36 2d |C%=8 . 15:.0,16-| 000000c0 43 25 3a c8 8f c8 90 20 63 78 25 2c 63 79 25 2c |C%:.... cx%,cy%,| 000000d0 32 30 30 2a 9b 28 b2 28 38 30 2a 43 25 2f 31 35 |200*.(.(80*C%/15| 000000e0 29 29 3a ed 0d 00 5a 16 20 e3 20 41 25 3d 30 20 |)):...Z. . A%=0 | 000000f0 b8 20 33 35 39 20 88 20 36 30 0d 00 64 42 20 20 |. 359 . 60..dB | 00000100 f2 74 65 6e 74 61 63 6c 65 28 b5 28 b2 28 41 25 |.tentacle(.(.(A%| 00000110 29 29 2a 34 30 2c 9b 28 b2 28 41 25 29 29 2a 34 |))*40,.(.(A%))*4| 00000120 30 2c b3 28 33 29 2c b3 28 33 29 2c b3 28 33 29 |0,.(3),.(3),.(3)| 00000130 2a 31 30 2c b3 28 33 29 2a 31 30 29 0d 00 6e 06 |*10,.(3)*10)..n.| 00000140 20 ed 0d 00 78 0c f2 77 72 69 67 67 6c 65 0d 00 | ...x..wriggle..| 00000150 82 07 fd 20 a3 0d 00 8c 05 e0 0d 00 96 05 3a 0d |... ..........:.| 00000160 00 a0 53 f4 20 20 54 65 6e 74 61 63 6c 65 20 63 |..S. Tentacle c| 00000170 72 65 61 74 69 6f 6e 20 2d 20 69 74 20 77 61 73 |reation - it was| 00000180 20 74 72 69 61 6c 20 61 6e 64 20 65 72 72 6f 72 | trial and error| 00000190 20 74 6f 20 67 65 74 20 74 68 65 20 74 65 6e 74 | to get the tent| 000001a0 61 63 6c 65 73 20 74 6f 20 74 68 69 6e 20 6f 75 |acles to thin ou| 000001b0 74 2e 0d 00 aa 05 3a 0d 00 b4 26 dd 20 f2 74 65 |t.....:...&. .te| 000001c0 6e 74 61 63 6c 65 28 58 25 2c 59 25 2c 57 31 25 |ntacle(X%,Y%,W1%| 000001d0 2c 57 32 25 2c 41 31 25 2c 41 32 25 29 0d 00 be |,W2%,A1%,A2%)...| 000001e0 21 ea 20 54 25 2c 5a 25 2c 74 68 69 6e 2c 52 25 |!. T%,Z%,thin,R%| 000001f0 2c 78 25 2c 79 25 2c 63 6f 6c 6f 66 66 25 0d 00 |,x%,y%,coloff%..| 00000200 c8 10 63 6f 6c 6f 66 66 25 3d b3 28 38 29 0d 00 |..coloff%=.(8)..| 00000210 d2 10 e3 20 54 25 3d 31 20 b8 20 38 30 30 0d 00 |... T%=1 . 800..| 00000220 dc 0e 20 5a 25 3d 39 30 30 2d 54 25 0d 00 e6 19 |.. Z%=900-T%....| 00000230 20 63 6f 6c 25 3d 28 54 25 20 81 20 33 29 20 83 | col%=(T% . 3) .| 00000240 20 31 35 2b 31 0d 00 f0 25 20 63 6f 6c 25 2b 3d | 15+1...% col%+=| 00000250 63 6f 6c 6f 66 66 25 3a e7 20 63 6f 6c 25 3e 31 |coloff%:. col%>1| 00000260 35 20 63 6f 6c 25 2d 3d 31 35 0d 00 fa 0c 20 e6 |5 col%-=15.... .| 00000270 30 2c 63 6f 6c 25 0d 01 04 1b 20 74 68 69 6e 3d |0,col%.... thin=| 00000280 9b 28 b2 28 37 2b 38 30 2a 54 25 2f 38 30 30 29 |.(.(7+80*T%/800)| 00000290 29 0d 01 0e 15 20 52 25 3d 31 35 2a 74 68 69 6e |).... R%=15*thin| 000002a0 2f 5a 25 2a 46 25 0d 01 18 1b 20 78 25 3d 58 25 |/Z%*F%.... x%=X%| 000002b0 2b b5 28 b2 28 54 25 2a 57 31 25 29 29 2a 41 31 |+.(.(T%*W1%))*A1| 000002c0 25 0d 01 22 1b 20 79 25 3d 59 25 2b 9b 28 b2 28 |%..". y%=Y%+.(.(| 000002d0 54 25 2a 57 32 25 29 29 2a 41 32 25 0d 01 2c 24 |T%*W2%))*A2%..,$| 000002e0 20 78 25 3d 78 25 2f 5a 25 2a 46 25 2b 63 78 25 | x%=x%/Z%*F%+cx%| 000002f0 3a 79 25 3d 79 25 2f 5a 25 2a 46 25 2b 63 79 25 |:y%=y%/Z%*F%+cy%| 00000300 0d 01 36 12 20 c8 8f c8 90 20 78 25 2c 79 25 2c |..6. .... x%,y%,| 00000310 52 25 0d 01 40 05 ed 0d 01 4a 05 e1 0d 01 54 05 |R%..@....J....T.| 00000320 3a 0d 01 5e 0e dd 20 f2 77 72 69 67 67 6c 65 0d |:..^.. .wriggle.| 00000330 01 68 08 ea 20 41 25 0d 01 72 08 43 25 3d 31 0d |.h.. A%..r.C%=1.| 00000340 01 7c 08 f5 3a c8 96 0d 01 86 10 20 e3 20 41 25 |.|..:...... . A%| 00000350 3d 31 20 b8 20 31 35 0d 01 90 4c 20 20 fb 20 41 |=1 . 15...L . A| 00000360 25 2c 30 2c 28 b5 28 b2 28 41 25 2a 33 36 30 2f |%,0,(.(.(A%*360/| 00000370 31 35 2b 43 25 29 29 2b 31 29 2f 32 2a 31 32 37 |15+C%))+1)/2*127| 00000380 2b 36 34 2c 28 b5 28 b2 28 41 25 2a 33 36 30 2f |+64,(.(.(A%*360/| 00000390 31 35 2b 43 25 29 29 2b 31 29 2f 32 2a 31 32 37 |15+C%))+1)/2*127| 000003a0 2b 36 34 0d 01 9a 06 20 ed 0d 01 a4 1c 20 43 25 |+64.... ..... C%| 000003b0 2b 3d 35 3a e7 20 43 25 3e 3d 33 36 30 20 43 25 |+=5:. C%>=360 C%| 000003c0 2d 3d 33 36 30 0d 01 ae 0b fd a6 28 2d 39 39 29 |-=360......(-99)| 000003d0 0d 01 b8 05 e1 0d ff |.......| 000003d7