Home » Archimedes archive » Acorn User » AU 1994-12.adf » !StarInfo_StarInfo » Kennedy/Moir
Kennedy/Moir
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-12.adf » !StarInfo_StarInfo |
Filename: | Kennedy/Moir |
Read OK: | ✔ |
File size: | 01B1 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM>Moiret 20REM by Nick Kennedy 30REM Displays interference patterns 40REM Stimulus : Physics lesson 50REM Try changing the value of e% or leaving out the FILL after CIRCLE to 60REM get a different effect. 70e%=3:DIMs &FFFF:o=46:!s=&FFFF:s!8=16:SYSo,&109,s:MODE0:GCOL3,1:FORi%=0TO1023STEP8:CIRCLEFILL640,512,i%:NEXT:SYSo,&110,s,"s",,,,1280,1024:b=1:MOUSETO640,512:MOUSEON:REPEATWAIT:SYS6,112,b:b=3-b:SYS6,113,b:CLS:MOUSEx,y,z:SYSo,&122,s,"s",0,0,0:SYSo,&122,s,"s",x-640,y-512,e%:UNTIL0
�>Moiret � by Nick Kennedy $� Displays interference patterns (� Stimulus : Physics lesson 2J� Try changing the value of e% or leaving out the FILL after CIRCLE to <� get a different effect. F�e%=3:�s &FFFF:o=46:!s=&FFFF:s!8=16:șo,&109,s:�0:�3,1:�i%=0�1023�8:ȏȐ640,512,i%:�:șo,&110,s,"s",,,,1280,1024:b=1:ȗ�640,512:ȗ�:�Ȗ:ș6,112,b:b=3-b:ș6,113,b:�:ȗx,y,z:șo,&122,s,"s",0,0,0:șo,&122,s,"s",x-640,y-512,e%:�0 �
00000000 0d 00 0a 0c f4 3e 4d 6f 69 72 65 74 0d 00 14 15 |.....>Moiret....| 00000010 f4 20 62 79 20 4e 69 63 6b 20 4b 65 6e 6e 65 64 |. by Nick Kenned| 00000020 79 0d 00 1e 24 f4 20 44 69 73 70 6c 61 79 73 20 |y...$. Displays | 00000030 69 6e 74 65 72 66 65 72 65 6e 63 65 20 70 61 74 |interference pat| 00000040 74 65 72 6e 73 0d 00 28 1f f4 20 53 74 69 6d 75 |terns..(.. Stimu| 00000050 6c 75 73 20 3a 20 50 68 79 73 69 63 73 20 6c 65 |lus : Physics le| 00000060 73 73 6f 6e 0d 00 32 4a f4 20 54 72 79 20 63 68 |sson..2J. Try ch| 00000070 61 6e 67 69 6e 67 20 74 68 65 20 76 61 6c 75 65 |anging the value| 00000080 20 6f 66 20 65 25 20 6f 72 20 6c 65 61 76 69 6e | of e% or leavin| 00000090 67 20 6f 75 74 20 74 68 65 20 46 49 4c 4c 20 61 |g out the FILL a| 000000a0 66 74 65 72 20 43 49 52 43 4c 45 20 74 6f 0d 00 |fter CIRCLE to..| 000000b0 3c 1d f4 20 67 65 74 20 61 20 64 69 66 66 65 72 |<.. get a differ| 000000c0 65 6e 74 20 65 66 66 65 63 74 2e 0d 00 46 e4 65 |ent effect...F.e| 000000d0 25 3d 33 3a de 73 20 26 46 46 46 46 3a 6f 3d 34 |%=3:.s &FFFF:o=4| 000000e0 36 3a 21 73 3d 26 46 46 46 46 3a 73 21 38 3d 31 |6:!s=&FFFF:s!8=1| 000000f0 36 3a c8 99 6f 2c 26 31 30 39 2c 73 3a eb 30 3a |6:..o,&109,s:.0:| 00000100 e6 33 2c 31 3a e3 69 25 3d 30 b8 31 30 32 33 88 |.3,1:.i%=0.1023.| 00000110 38 3a c8 8f c8 90 36 34 30 2c 35 31 32 2c 69 25 |8:....640,512,i%| 00000120 3a ed 3a c8 99 6f 2c 26 31 31 30 2c 73 2c 22 73 |:.:..o,&110,s,"s| 00000130 22 2c 2c 2c 2c 31 32 38 30 2c 31 30 32 34 3a 62 |",,,,1280,1024:b| 00000140 3d 31 3a c8 97 b8 36 34 30 2c 35 31 32 3a c8 97 |=1:...640,512:..| 00000150 ee 3a f5 c8 96 3a c8 99 36 2c 31 31 32 2c 62 3a |.:...:..6,112,b:| 00000160 62 3d 33 2d 62 3a c8 99 36 2c 31 31 33 2c 62 3a |b=3-b:..6,113,b:| 00000170 db 3a c8 97 78 2c 79 2c 7a 3a c8 99 6f 2c 26 31 |.:..x,y,z:..o,&1| 00000180 32 32 2c 73 2c 22 73 22 2c 30 2c 30 2c 30 3a c8 |22,s,"s",0,0,0:.| 00000190 99 6f 2c 26 31 32 32 2c 73 2c 22 73 22 2c 78 2d |.o,&122,s,"s",x-| 000001a0 36 34 30 2c 79 2d 35 31 32 2c 65 25 3a fd 30 0d |640,y-512,e%:.0.| 000001b0 ff |.| 000001b1