Home » Archimedes archive » Acorn User » AU 1994-03.adf » !StarInfo_StarInfo » Vibe/Squairs
Vibe/Squairs
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 1994-03.adf » !StarInfo_StarInfo |
Filename: | Vibe/Squairs |
Read OK: | ✔ |
File size: | 0304 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1REM >Squairs 2REM By Jan Vibe 3REM For 32-bit machines 4REM (c) AU March 1994 5 6MODE12:OFF:DIMA%(66,66):R%=RND(-TIME) 7FORN%=1TO15 8F1%=24*N%:F2%=F1%+120:F3%=F1%+240 9C1%=128*(SINRADF1%+1) 10C2%=128*(SINRADF2%+1) 11C3%=128*(SINRADF3%+1) 12COLOUR N%,C1%,C2%,C3% 13NEXT 14 15REPEAT:CLS 16GCOL15:RECTANGLE 0,0,1278,1020 17K%=RND(29)*2+7:B%=1020/(K%+1):B%=4*(B%DIV4) 18FX%=(1278-B%*K%)/2-B%:FY%=(1020-B%*K%)/2-B% 19A%()=(8):F1%=RND(K%DIV2):F2%=RND(K%DIV2) 20PROCA((K%+1)/2,(K%+1)/2):K=INKEY(500) 21UNTIL0 22 23DEFPROCA(X%,Y%) 24IFX%<1ORX%>K%ORY%<1ORY%>K% ENDPROC 25A%(X%,Y%)=A%(X%,Y%)+1 26IF A%(X%,Y%)>8 THEN 27A%(X%,Y%)=A%(X%,Y%)-8 28PROCA(X%-F1%,Y%):PROCA(X%-F2%,Y%-F2%) 29PROCA(X%+F1%,Y%):PROCA(X%+F2%,Y%+F2%) 30PROCA(X%,Y%-F1%):PROCA(X%+F2%,Y%-F2%) 31PROCA(X%,Y%+F1%):PROCA(X%-F2%,Y%+F2%) 32ENDIF 33GCOL A%(X%,Y%):RECTANGLE FILL FX%+B%*X%,FY%+B%*Y%,B%-2,B%-4 34ENDPROC
� >Squairs � By Jan Vibe � For 32-bit machines � (c) AU March 1994 �12:�:�A%(66,66):R%=�(-�) �N%=1�15 %F1%=24*N%:F2%=F1%+120:F3%=F1%+240 C1%=128*(��F1%+1) C2%=128*(��F2%+1) C3%=128*(��F3%+1) � N%,C1%,C2%,C3% � �:� �15:ȓ 0,0,1278,1020 +K%=�(29)*2+7:B%=1020/(K%+1):B%=4*(B%�4) /FX%=(1278-B%*K%)/2-B%:FY%=(1020-B%*K%)/2-B% $A%()=(8):F1%=�(K%�2):F2%=�(K%�2) "�A((K%+1)/2,(K%+1)/2):K=�(500) �0 ��A(X%,Y%) �X%<1�X%>K%�Y%<1�Y%>K% � A%(X%,Y%)=A%(X%,Y%)+1 � A%(X%,Y%)>8 � A%(X%,Y%)=A%(X%,Y%)-8 #�A(X%-F1%,Y%):�A(X%-F2%,Y%-F2%) #�A(X%+F1%,Y%):�A(X%+F2%,Y%+F2%) #�A(X%,Y%-F1%):�A(X%+F2%,Y%-F2%) #�A(X%,Y%+F1%):�A(X%-F2%,Y%+F2%) � !3� A%(X%,Y%):ȓ Ȑ FX%+B%*X%,FY%+B%*Y%,B%-2,B%-4 "� �
00000000 0d 00 01 11 f4 20 20 20 20 3e 53 71 75 61 69 72 |..... >Squair| 00000010 73 0d 00 02 12 f4 20 42 79 20 20 4a 61 6e 20 56 |s..... By Jan V| 00000020 69 62 65 0d 00 03 19 f4 20 46 6f 72 20 33 32 2d |ibe..... For 32-| 00000030 62 69 74 20 6d 61 63 68 69 6e 65 73 0d 00 04 17 |bit machines....| 00000040 f4 20 28 63 29 20 41 55 20 4d 61 72 63 68 20 31 |. (c) AU March 1| 00000050 39 39 34 0d 00 05 04 0d 00 06 1d eb 31 32 3a 87 |994.........12:.| 00000060 3a de 41 25 28 36 36 2c 36 36 29 3a 52 25 3d b3 |:.A%(66,66):R%=.| 00000070 28 2d 91 29 0d 00 07 0c e3 4e 25 3d 31 b8 31 35 |(-.).....N%=1.15| 00000080 0d 00 08 25 46 31 25 3d 32 34 2a 4e 25 3a 46 32 |...%F1%=24*N%:F2| 00000090 25 3d 46 31 25 2b 31 32 30 3a 46 33 25 3d 46 31 |%=F1%+120:F3%=F1| 000000a0 25 2b 32 34 30 0d 00 09 15 43 31 25 3d 31 32 38 |%+240....C1%=128| 000000b0 2a 28 b5 b2 46 31 25 2b 31 29 0d 00 0a 15 43 32 |*(..F1%+1)....C2| 000000c0 25 3d 31 32 38 2a 28 b5 b2 46 32 25 2b 31 29 0d |%=128*(..F2%+1).| 000000d0 00 0b 15 43 33 25 3d 31 32 38 2a 28 b5 b2 46 33 |...C3%=128*(..F3| 000000e0 25 2b 31 29 0d 00 0c 14 fb 20 4e 25 2c 43 31 25 |%+1)..... N%,C1%| 000000f0 2c 43 32 25 2c 43 33 25 0d 00 0d 05 ed 0d 00 0e |,C2%,C3%........| 00000100 04 0d 00 0f 07 f5 3a db 0d 00 10 18 e6 31 35 3a |......:......15:| 00000110 c8 93 20 30 2c 30 2c 31 32 37 38 2c 31 30 32 30 |.. 0,0,1278,1020| 00000120 0d 00 11 2b 4b 25 3d b3 28 32 39 29 2a 32 2b 37 |...+K%=.(29)*2+7| 00000130 3a 42 25 3d 31 30 32 30 2f 28 4b 25 2b 31 29 3a |:B%=1020/(K%+1):| 00000140 42 25 3d 34 2a 28 42 25 81 34 29 0d 00 12 2f 46 |B%=4*(B%.4).../F| 00000150 58 25 3d 28 31 32 37 38 2d 42 25 2a 4b 25 29 2f |X%=(1278-B%*K%)/| 00000160 32 2d 42 25 3a 46 59 25 3d 28 31 30 32 30 2d 42 |2-B%:FY%=(1020-B| 00000170 25 2a 4b 25 29 2f 32 2d 42 25 0d 00 13 24 41 25 |%*K%)/2-B%...$A%| 00000180 28 29 3d 28 38 29 3a 46 31 25 3d b3 28 4b 25 81 |()=(8):F1%=.(K%.| 00000190 32 29 3a 46 32 25 3d b3 28 4b 25 81 32 29 0d 00 |2):F2%=.(K%.2)..| 000001a0 14 22 f2 41 28 28 4b 25 2b 31 29 2f 32 2c 28 4b |.".A((K%+1)/2,(K| 000001b0 25 2b 31 29 2f 32 29 3a 4b 3d a6 28 35 30 30 29 |%+1)/2):K=.(500)| 000001c0 0d 00 15 06 fd 30 0d 00 16 04 0d 00 17 0e dd f2 |.....0..........| 000001d0 41 28 58 25 2c 59 25 29 0d 00 18 1c e7 58 25 3c |A(X%,Y%).....X%<| 000001e0 31 84 58 25 3e 4b 25 84 59 25 3c 31 84 59 25 3e |1.X%>K%.Y%<1.Y%>| 000001f0 4b 25 20 e1 0d 00 19 19 41 25 28 58 25 2c 59 25 |K% .....A%(X%,Y%| 00000200 29 3d 41 25 28 58 25 2c 59 25 29 2b 31 0d 00 1a |)=A%(X%,Y%)+1...| 00000210 13 e7 20 41 25 28 58 25 2c 59 25 29 3e 38 20 8c |.. A%(X%,Y%)>8 .| 00000220 0d 00 1b 19 41 25 28 58 25 2c 59 25 29 3d 41 25 |....A%(X%,Y%)=A%| 00000230 28 58 25 2c 59 25 29 2d 38 0d 00 1c 23 f2 41 28 |(X%,Y%)-8...#.A(| 00000240 58 25 2d 46 31 25 2c 59 25 29 3a f2 41 28 58 25 |X%-F1%,Y%):.A(X%| 00000250 2d 46 32 25 2c 59 25 2d 46 32 25 29 0d 00 1d 23 |-F2%,Y%-F2%)...#| 00000260 f2 41 28 58 25 2b 46 31 25 2c 59 25 29 3a f2 41 |.A(X%+F1%,Y%):.A| 00000270 28 58 25 2b 46 32 25 2c 59 25 2b 46 32 25 29 0d |(X%+F2%,Y%+F2%).| 00000280 00 1e 23 f2 41 28 58 25 2c 59 25 2d 46 31 25 29 |..#.A(X%,Y%-F1%)| 00000290 3a f2 41 28 58 25 2b 46 32 25 2c 59 25 2d 46 32 |:.A(X%+F2%,Y%-F2| 000002a0 25 29 0d 00 1f 23 f2 41 28 58 25 2c 59 25 2b 46 |%)...#.A(X%,Y%+F| 000002b0 31 25 29 3a f2 41 28 58 25 2d 46 32 25 2c 59 25 |1%):.A(X%-F2%,Y%| 000002c0 2b 46 32 25 29 0d 00 20 05 cd 0d 00 21 33 e6 20 |+F2%).. ....!3. | 000002d0 41 25 28 58 25 2c 59 25 29 3a c8 93 20 c8 90 20 |A%(X%,Y%):.. .. | 000002e0 46 58 25 2b 42 25 2a 58 25 2c 46 59 25 2b 42 25 |FX%+B%*X%,FY%+B%| 000002f0 2a 59 25 2c 42 25 2d 32 2c 42 25 2d 34 0d 00 22 |*Y%,B%-2,B%-4.."| 00000300 05 e1 0d ff |....| 00000304