Home » Archimedes archive » Acorn User » AU 1998-09.adf » Regulars » StarInfo/Stoner/RedArrows
StarInfo/Stoner/RedArrows
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 1998-09.adf » Regulars |
| Filename: | StarInfo/Stoner/RedArrows |
| Read OK: | ✔ |
| File size: | 0295 bytes |
| Load address: | 0000 |
| Exec address: | 0000 |
File contents
1REM Red Arrows Lissajeux Patterns
2REM Nigel Stoner
3
4SYS "OS_SWINumberFromString",,"ColourTrans_SetGCOL" TO col%
5
6MODE 13+128:OFF:s%=1:ORIGIN 640,512
7DIM bx%(20,50),by%(20,50)
8
9REM change these values to suit the speed of
10REM you computer.
11blobs%=8
12len%=29
13
14shift%=250/len%
15REPEATSYS 6,112,s%:s%=s%EOR3:SYS6,113,s%:WAIT:CLS:FOR a%=0TOblobs%:bx%(a%,0)=640*(COSRAD(TIME/PI)*SINRAD(TIME/(a%+1))):by%(a%,0)=512*(SINRAD(TIME/1.8)*SINRAD(TIME/(a%+4))):NEXT a%:FOR b%=0 TO blobs%:FORa%=len%TO1STEP-1:bx%(b%,a%)=bx%(b%,a%-1):by%(b%,a%)=by%(b%,a%-1):NEXT a%,b%
16FOR a%=len%TO1STEP-1:SYScol%,((250-a%*shift%)<<16)+(250<<8),,,&100:FOR b%=0TOblobs%:MOVE bx%(b%,a%-1),by%(b%,a%-1):DRAW bx%(b%,a%),by%(b%,a%):NEXT b%,a%
17UNTIL FALSE
#� Red Arrows Lissajeux Patterns � Nigel Stoner =ș "OS_SWINumberFromString",,"ColourTrans_SetGCOL" � col% � 13+128:�:s%=1:ȑ 640,512 � bx%(20,50),by%(20,50) .� change these values to suit the speed of � you computer. blobs%=8 len%=29 shift%=250/len% �ș 6,112,s%:s%=s%�3:ș6,113,s%:Ȗ:�:� a%=0�blobs%:bx%(a%,0)=640*(��(�/�)*��(�/(a%+1))):by%(a%,0)=512*(��(�/1.8)*��(�/(a%+4))):� a%:� b%=0 � blobs%:�a%=len%�1�-1:bx%(b%,a%)=bx%(b%,a%-1):by%(b%,a%)=by%(b%,a%-1):� a%,b% �� a%=len%�1�-1:școl%,((250-a%*shift%)<<16)+(250<<8),,,&100:� b%=0�blobs%:� bx%(b%,a%-1),by%(b%,a%-1):� bx%(b%,a%),by%(b%,a%):� b%,a% � � �
00000000 0d 00 01 23 f4 20 52 65 64 20 41 72 72 6f 77 73 |...#. Red Arrows| 00000010 20 4c 69 73 73 61 6a 65 75 78 20 50 61 74 74 65 | Lissajeux Patte| 00000020 72 6e 73 0d 00 02 12 f4 20 4e 69 67 65 6c 20 53 |rns..... Nigel S| 00000030 74 6f 6e 65 72 0d 00 03 04 0d 00 04 3d c8 99 20 |toner.......=.. | 00000040 22 4f 53 5f 53 57 49 4e 75 6d 62 65 72 46 72 6f |"OS_SWINumberFro| 00000050 6d 53 74 72 69 6e 67 22 2c 2c 22 43 6f 6c 6f 75 |mString",,"Colou| 00000060 72 54 72 61 6e 73 5f 53 65 74 47 43 4f 4c 22 20 |rTrans_SetGCOL" | 00000070 b8 20 63 6f 6c 25 0d 00 05 04 0d 00 06 1e eb 20 |. col%......... | 00000080 31 33 2b 31 32 38 3a 87 3a 73 25 3d 31 3a c8 91 |13+128:.:s%=1:..| 00000090 20 36 34 30 2c 35 31 32 0d 00 07 1b de 20 62 78 | 640,512..... bx| 000000a0 25 28 32 30 2c 35 30 29 2c 62 79 25 28 32 30 2c |%(20,50),by%(20,| 000000b0 35 30 29 0d 00 08 04 0d 00 09 2e f4 20 63 68 61 |50)......... cha| 000000c0 6e 67 65 20 74 68 65 73 65 20 76 61 6c 75 65 73 |nge these values| 000000d0 20 74 6f 20 73 75 69 74 20 74 68 65 20 73 70 65 | to suit the spe| 000000e0 65 64 20 6f 66 0d 00 0a 13 f4 20 79 6f 75 20 63 |ed of..... you c| 000000f0 6f 6d 70 75 74 65 72 2e 0d 00 0b 0c 62 6c 6f 62 |omputer.....blob| 00000100 73 25 3d 38 0d 00 0c 0b 6c 65 6e 25 3d 32 39 0d |s%=8....len%=29.| 00000110 00 0d 04 0d 00 0e 13 73 68 69 66 74 25 3d 32 35 |.......shift%=25| 00000120 30 2f 6c 65 6e 25 0d 00 0f dd f5 c8 99 20 36 2c |0/len%....... 6,| 00000130 31 31 32 2c 73 25 3a 73 25 3d 73 25 82 33 3a c8 |112,s%:s%=s%.3:.| 00000140 99 36 2c 31 31 33 2c 73 25 3a c8 96 3a db 3a e3 |.6,113,s%:..:.:.| 00000150 20 61 25 3d 30 b8 62 6c 6f 62 73 25 3a 62 78 25 | a%=0.blobs%:bx%| 00000160 28 61 25 2c 30 29 3d 36 34 30 2a 28 9b b2 28 91 |(a%,0)=640*(..(.| 00000170 2f af 29 2a b5 b2 28 91 2f 28 61 25 2b 31 29 29 |/.)*..(./(a%+1))| 00000180 29 3a 62 79 25 28 61 25 2c 30 29 3d 35 31 32 2a |):by%(a%,0)=512*| 00000190 28 b5 b2 28 91 2f 31 2e 38 29 2a b5 b2 28 91 2f |(..(./1.8)*..(./| 000001a0 28 61 25 2b 34 29 29 29 3a ed 20 61 25 3a e3 20 |(a%+4))):. a%:. | 000001b0 62 25 3d 30 20 b8 20 62 6c 6f 62 73 25 3a e3 61 |b%=0 . blobs%:.a| 000001c0 25 3d 6c 65 6e 25 b8 31 88 2d 31 3a 62 78 25 28 |%=len%.1.-1:bx%(| 000001d0 62 25 2c 61 25 29 3d 62 78 25 28 62 25 2c 61 25 |b%,a%)=bx%(b%,a%| 000001e0 2d 31 29 3a 62 79 25 28 62 25 2c 61 25 29 3d 62 |-1):by%(b%,a%)=b| 000001f0 79 25 28 62 25 2c 61 25 2d 31 29 3a ed 20 61 25 |y%(b%,a%-1):. a%| 00000200 2c 62 25 0d 00 10 89 e3 20 61 25 3d 6c 65 6e 25 |,b%..... a%=len%| 00000210 b8 31 88 2d 31 3a c8 99 63 6f 6c 25 2c 28 28 32 |.1.-1:..col%,((2| 00000220 35 30 2d 61 25 2a 73 68 69 66 74 25 29 3c 3c 31 |50-a%*shift%)<<1| 00000230 36 29 2b 28 32 35 30 3c 3c 38 29 2c 2c 2c 26 31 |6)+(250<<8),,,&1| 00000240 30 30 3a e3 20 62 25 3d 30 b8 62 6c 6f 62 73 25 |00:. b%=0.blobs%| 00000250 3a ec 20 62 78 25 28 62 25 2c 61 25 2d 31 29 2c |:. bx%(b%,a%-1),| 00000260 62 79 25 28 62 25 2c 61 25 2d 31 29 3a df 20 62 |by%(b%,a%-1):. b| 00000270 78 25 28 62 25 2c 61 25 29 2c 62 79 25 28 62 25 |x%(b%,a%),by%(b%| 00000280 2c 61 25 29 3a ed 20 62 25 2c 61 25 0d 00 11 07 |,a%):. b%,a%....| 00000290 fd 20 a3 0d ff |. ...| 00000295
.