Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199312.adf » !StarInfo_StarInfo » Clover/SpyraTingy

Clover/SpyraTingy

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199312.adf » !StarInfo_StarInfo
Filename: Clover/SpyraTingy
Read OK:
File size: 02ED bytes
Load address: 0000
Exec address: 0000
File contents
   10REM     >SpyraTingy
   20REM By  Kane Clover (Age 12)
   30REM For 32-bit machines
   40REM (c) BAU December 1993
   50:
   60MODE 15
   70OFF
   80MOUSE ON
   90*POINTER
  100INPUT "Angle of step round a circle (Try 45)",step%
  110CLS
  120pen_size%=10
  130cx%=640
  140cy%=512
  150col%=0
  160coldir%=0
  170POINT cx%,cy%
  180SYS "OS_SWINumberFromString",,"ColourTrans_SetGCOL" TO SetGcol%
  190:
  200REPEAT
  210 MOUSE x%,y%,z%
  220 dist%=SQR((ABS(cx%-x%)^2)+(ABS(cy%-y%)^2))
  230 start_ang%=x%-cx%
  240 IF z%=4 THEN
  250  FOR l%=0 TO 360 STEP step%
  260   xd%=(dist%*COS(RAD(-((start_ang%+l%)-90))))+640
  270   yd%=(dist%*SIN(RAD(-((start_ang%+l%)-90))))+512
  280   CIRCLE FILL xd%,yd%,pen_size%
  290  NEXT
  300  IF coldir%=1 THEN col%+=4 ELSE col%-=4
  310  IF col%=252 OR col%=0 THEN coldir%=coldir% EOR 1
  320  SYS SetGcol%,col%<<16,,,&100,0
  330 ENDIF
  340 IF z%=1 CLS
  350UNTIL FALSE

�     >SpyraTingy
� By  Kane Clover (Age 12)
� For 32-bit machines
(� (c) BAU December 1993
2:
<� 15
F�
Pȗ �
Z*POINTER
d3� "Angle of step round a circle (Try 45)",step%
n�
xpen_size%=10
�cx%=640
�cy%=512
�
col%=0
�
coldir%=0
�Ȓ cx%,cy%
�Aș "OS_SWINumberFromString",,"ColourTrans_SetGCOL" � SetGcol%
�:
��
� ȗ x%,y%,z%
�) dist%=�((�(cx%-x%)^2)+(�(cy%-y%)^2))
� start_ang%=x%-cx%
�
 � z%=4 �
�  � l%=0 � 360 � step%
2   xd%=(dist%*�(�(-((start_ang%+l%)-90))))+640
2   yd%=(dist%*�(�(-((start_ang%+l%)-90))))+512
   ȏ Ȑ xd%,yd%,pen_size%
"  �
,%  � coldir%=1 � col%+=4 � col%-=4
6/  � col%=252 � col%=0 � coldir%=coldir% � 1
@#  ș SetGcol%,col%<<16,,,&100,0
J �
T
 � z%=1 �
^� �
�
00000000  0d 00 0a 15 f4 20 20 20  20 20 3e 53 70 79 72 61  |.....     >Spyra|
00000010  54 69 6e 67 79 0d 00 14  1e f4 20 42 79 20 20 4b  |Tingy..... By  K|
00000020  61 6e 65 20 43 6c 6f 76  65 72 20 28 41 67 65 20  |ane Clover (Age |
00000030  31 32 29 0d 00 1e 19 f4  20 46 6f 72 20 33 32 2d  |12)..... For 32-|
00000040  62 69 74 20 6d 61 63 68  69 6e 65 73 0d 00 28 1b  |bit machines..(.|
00000050  f4 20 28 63 29 20 42 41  55 20 44 65 63 65 6d 62  |. (c) BAU Decemb|
00000060  65 72 20 31 39 39 33 0d  00 32 05 3a 0d 00 3c 08  |er 1993..2.:..<.|
00000070  eb 20 31 35 0d 00 46 05  87 0d 00 50 08 c8 97 20  |. 15..F....P... |
00000080  ee 0d 00 5a 0c 2a 50 4f  49 4e 54 45 52 0d 00 64  |...Z.*POINTER..d|
00000090  33 e8 20 22 41 6e 67 6c  65 20 6f 66 20 73 74 65  |3. "Angle of ste|
000000a0  70 20 72 6f 75 6e 64 20  61 20 63 69 72 63 6c 65  |p round a circle|
000000b0  20 28 54 72 79 20 34 35  29 22 2c 73 74 65 70 25  | (Try 45)",step%|
000000c0  0d 00 6e 05 db 0d 00 78  10 70 65 6e 5f 73 69 7a  |..n....x.pen_siz|
000000d0  65 25 3d 31 30 0d 00 82  0b 63 78 25 3d 36 34 30  |e%=10....cx%=640|
000000e0  0d 00 8c 0b 63 79 25 3d  35 31 32 0d 00 96 0a 63  |....cy%=512....c|
000000f0  6f 6c 25 3d 30 0d 00 a0  0d 63 6f 6c 64 69 72 25  |ol%=0....coldir%|
00000100  3d 30 0d 00 aa 0e c8 92  20 63 78 25 2c 63 79 25  |=0...... cx%,cy%|
00000110  0d 00 b4 41 c8 99 20 22  4f 53 5f 53 57 49 4e 75  |...A.. "OS_SWINu|
00000120  6d 62 65 72 46 72 6f 6d  53 74 72 69 6e 67 22 2c  |mberFromString",|
00000130  2c 22 43 6f 6c 6f 75 72  54 72 61 6e 73 5f 53 65  |,"ColourTrans_Se|
00000140  74 47 43 4f 4c 22 20 b8  20 53 65 74 47 63 6f 6c  |tGCOL" . SetGcol|
00000150  25 0d 00 be 05 3a 0d 00  c8 05 f5 0d 00 d2 10 20  |%....:......... |
00000160  c8 97 20 78 25 2c 79 25  2c 7a 25 0d 00 dc 29 20  |.. x%,y%,z%...) |
00000170  64 69 73 74 25 3d b6 28  28 94 28 63 78 25 2d 78  |dist%=.((.(cx%-x|
00000180  25 29 5e 32 29 2b 28 94  28 63 79 25 2d 79 25 29  |%)^2)+(.(cy%-y%)|
00000190  5e 32 29 29 0d 00 e6 16  20 73 74 61 72 74 5f 61  |^2)).... start_a|
000001a0  6e 67 25 3d 78 25 2d 63  78 25 0d 00 f0 0d 20 e7  |ng%=x%-cx%.... .|
000001b0  20 7a 25 3d 34 20 8c 0d  00 fa 1a 20 20 e3 20 6c  | z%=4 .....  . l|
000001c0  25 3d 30 20 b8 20 33 36  30 20 88 20 73 74 65 70  |%=0 . 360 . step|
000001d0  25 0d 01 04 32 20 20 20  78 64 25 3d 28 64 69 73  |%...2   xd%=(dis|
000001e0  74 25 2a 9b 28 b2 28 2d  28 28 73 74 61 72 74 5f  |t%*.(.(-((start_|
000001f0  61 6e 67 25 2b 6c 25 29  2d 39 30 29 29 29 29 2b  |ang%+l%)-90))))+|
00000200  36 34 30 0d 01 0e 32 20  20 20 79 64 25 3d 28 64  |640...2   yd%=(d|
00000210  69 73 74 25 2a b5 28 b2  28 2d 28 28 73 74 61 72  |ist%*.(.(-((star|
00000220  74 5f 61 6e 67 25 2b 6c  25 29 2d 39 30 29 29 29  |t_ang%+l%)-90)))|
00000230  29 2b 35 31 32 0d 01 18  1e 20 20 20 c8 8f 20 c8  |)+512....   .. .|
00000240  90 20 78 64 25 2c 79 64  25 2c 70 65 6e 5f 73 69  |. xd%,yd%,pen_si|
00000250  7a 65 25 0d 01 22 07 20  20 ed 0d 01 2c 25 20 20  |ze%..".  ...,%  |
00000260  e7 20 63 6f 6c 64 69 72  25 3d 31 20 8c 20 63 6f  |. coldir%=1 . co|
00000270  6c 25 2b 3d 34 20 8b 20  63 6f 6c 25 2d 3d 34 0d  |l%+=4 . col%-=4.|
00000280  01 36 2f 20 20 e7 20 63  6f 6c 25 3d 32 35 32 20  |.6/  . col%=252 |
00000290  84 20 63 6f 6c 25 3d 30  20 8c 20 63 6f 6c 64 69  |. col%=0 . coldi|
000002a0  72 25 3d 63 6f 6c 64 69  72 25 20 82 20 31 0d 01  |r%=coldir% . 1..|
000002b0  40 23 20 20 c8 99 20 53  65 74 47 63 6f 6c 25 2c  |@#  .. SetGcol%,|
000002c0  63 6f 6c 25 3c 3c 31 36  2c 2c 2c 26 31 30 30 2c  |col%<<16,,,&100,|
000002d0  30 0d 01 4a 06 20 cd 0d  01 54 0d 20 e7 20 7a 25  |0..J. ...T. . z%|
000002e0  3d 31 20 db 0d 01 5e 07  fd 20 a3 0d ff           |=1 ...^.. ...|
000002ed