Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape21b_acorn_eu_1991_april.wav » R.Spirals
R.Spirals
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 » Personal collection » Acorn tapes » Electron_User » Electron_User_tape21b_acorn_eu_1991_april.wav |
Filename: | R.Spirals |
Read OK: | ✔ |
File size: | 019C bytes |
Load address: | FFFF1A00 |
Exec address: | FFFF8023 |
Duplicates
There are 3 duplicate copies of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_09_02_D-MU09_02.ssd » R.Spirals
- AEW website » mu » mu_Micro_User_09_02_MU9-2_B.uef » R.Spirals
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape21b_acorn_eu_1991_april.wav » R.Spirals
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape21a_acorn_eu_1991_april.wav » R.Spirals
File contents
10REM Spirals 20REM by Justin Coombs 30REM (c) The Micro User 40MODE 0:PROCspiral(640,512,5,0,60,1,1):END 50DEF PROCspiral(X%,Y%,revolutions%,degree%,gradient,quality%,colour%) 60GCOL 0,colour%:MOVE X%,Y% 70gradient=gradient/(360/quality%) 80FOR I%=1 TO revolutions%*(360/quality%):degree%=degree%+quality%:IF degree%=360 THEN degree%=0 90PX%=(SIN(RAD(degree%))*(I%*gradient))+X%:PY%=(COS(RAD(degree%))*(I%*gradient))+Y%:DRAW PX%,PY% 100NEXT I%:ENDPROC
� Spirals � by Justin Coombs � (c) The Micro User (%� 0:�spiral(640,512,5,0,60,1,1):� 2C� �spiral(X%,Y%,revolutions%,degree%,gradient,quality%,colour%) <� 0,colour%:� X%,Y% F$gradient=gradient/(360/quality%) P[� I%=1 � revolutions%*(360/quality%):degree%=degree%+quality%:� degree%=360 � degree%=0 ZWPX%=(�(�(degree%))*(I%*gradient))+X%:PY%=(�(�(degree%))*(I%*gradient))+Y%:� PX%,PY% d � I%:� �
00000000 0d 00 0a 0d f4 20 53 70 69 72 61 6c 73 0d 00 14 |..... Spirals...| 00000010 16 f4 20 62 79 20 4a 75 73 74 69 6e 20 43 6f 6f |.. by Justin Coo| 00000020 6d 62 73 0d 00 1e 18 f4 20 28 63 29 20 54 68 65 |mbs..... (c) The| 00000030 20 4d 69 63 72 6f 20 55 73 65 72 0d 00 28 25 eb | Micro User..(%.| 00000040 20 30 3a f2 73 70 69 72 61 6c 28 36 34 30 2c 35 | 0:.spiral(640,5| 00000050 31 32 2c 35 2c 30 2c 36 30 2c 31 2c 31 29 3a e0 |12,5,0,60,1,1):.| 00000060 0d 00 32 43 dd 20 f2 73 70 69 72 61 6c 28 58 25 |..2C. .spiral(X%| 00000070 2c 59 25 2c 72 65 76 6f 6c 75 74 69 6f 6e 73 25 |,Y%,revolutions%| 00000080 2c 64 65 67 72 65 65 25 2c 67 72 61 64 69 65 6e |,degree%,gradien| 00000090 74 2c 71 75 61 6c 69 74 79 25 2c 63 6f 6c 6f 75 |t,quality%,colou| 000000a0 72 25 29 0d 00 3c 17 e6 20 30 2c 63 6f 6c 6f 75 |r%)..<.. 0,colou| 000000b0 72 25 3a ec 20 58 25 2c 59 25 0d 00 46 24 67 72 |r%:. X%,Y%..F$gr| 000000c0 61 64 69 65 6e 74 3d 67 72 61 64 69 65 6e 74 2f |adient=gradient/| 000000d0 28 33 36 30 2f 71 75 61 6c 69 74 79 25 29 0d 00 |(360/quality%)..| 000000e0 50 5b e3 20 49 25 3d 31 20 b8 20 72 65 76 6f 6c |P[. I%=1 . revol| 000000f0 75 74 69 6f 6e 73 25 2a 28 33 36 30 2f 71 75 61 |utions%*(360/qua| 00000100 6c 69 74 79 25 29 3a 64 65 67 72 65 65 25 3d 64 |lity%):degree%=d| 00000110 65 67 72 65 65 25 2b 71 75 61 6c 69 74 79 25 3a |egree%+quality%:| 00000120 e7 20 64 65 67 72 65 65 25 3d 33 36 30 20 8c 20 |. degree%=360 . | 00000130 64 65 67 72 65 65 25 3d 30 0d 00 5a 57 50 58 25 |degree%=0..ZWPX%| 00000140 3d 28 b5 28 b2 28 64 65 67 72 65 65 25 29 29 2a |=(.(.(degree%))*| 00000150 28 49 25 2a 67 72 61 64 69 65 6e 74 29 29 2b 58 |(I%*gradient))+X| 00000160 25 3a 50 59 25 3d 28 9b 28 b2 28 64 65 67 72 65 |%:PY%=(.(.(degre| 00000170 65 25 29 29 2a 28 49 25 2a 67 72 61 64 69 65 6e |e%))*(I%*gradien| 00000180 74 29 29 2b 59 25 3a df 20 50 58 25 2c 50 59 25 |t))+Y%:. PX%,PY%| 00000190 0d 00 64 0a ed 20 49 25 3a e1 0d ff |..d.. I%:...| 0000019c