Home » Archimedes archive » Acorn User » AU 1998-04 A.adf » Regulars » StarInfo/Stoner/Satin
StarInfo/Stoner/Satin
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-04 A.adf » Regulars |
Filename: | StarInfo/Stoner/Satin |
Read OK: | ✔ |
File size: | 060F bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1REM True Plasma Drawer 2REM by Nigel Stoner 1997 3ON ERROR PROCdoit:REPORT:PRINT" in line ";ERL:END 4t%=RND(-TIME) 5 6PROCinit 7PROCsetpal 8ti%=TIME 9PROCfullscrn 10PRINT TAB(0,0)STR$(INT((TIME-ti%)/100)) 11PROCdoit 12END 13 14DEFPROCinit 15MODE9:IF MODE<>22 MODE 9 16OFF 17SYS "OS_SWINumberFromString",,"ColourTrans_SetGCOL" TO col% 18DIM cx%(16),cy%(16),pal%(255) 19ENDPROC 20 21DEFPROCpickcs 22LOCAL x%,y%,b%,ox%,oy% 23GCOL4:FOR x%=0 TO 1280 STEP 80:RECTANGLEx%,0,1,1024:RECTANGLE0,x%*.75,1280,1:NEXT x% 24PRINTTAB(0,10)"Place your attractors with Select" 25centre%=3:GCOL 3,15 26MOUSE ON:FOR a%=0 TO centre%:REPEAT:MOUSEx%,y%,b%:UNTILb%=0:ox%=x%:oy%=y%:CIRCLEFILLx%,y%,128 27REPEAT:MOUSE x%,y%,b% 28IF ox%<>x% OR oy%<>y% CIRCLEFILLox%,oy%,128:ox%=x%:oy%=y%:CIRCLEFILLox%,oy%,128 29UNTIL b%=4:cx%(a%)=x%:cy%(a%)=y%:NEXT:MOUSE OFF 30ENDPROC 31 32DEFPROCsetpal 33REM set pallette 34FOR a%=0 TO 15:COLOURa%,a%*16,a%*16,a%*16::NEXT 35ENDPROC 36 37DEFPROCfullscrn 38centre%=3:PROCpickcs 39REPEAT:PRINTTAB(0,12)"Enter Band Width (1-99)"; 40INPUT band:UNTIL band >0 AND band <100 41band=1-(band/100) 42over%=8:start%=0 43FOR y%= start% TO 1024-over% STEP over%:FOR x%= start% TO 1280-over% STEP over%:xsum%=0:ysum%=0:FOR a%=0 TO centre%:dx%=cx%(a%)-x%:dy%=cy%(a%)-y%:d2%=dx%*dx%+dy%*dy% 44IF d2% <> 0 adj%=(dx%*dy%):x2%=(dx%*adj%)>>7:y2%=(dx%*adj%)>>7:xsum%+=(x2%*cx%(a%))/d2%:ysum%+=(y2%*cy%(a%))/d2% ELSE a%=centre%+1 45NEXT a%:d%=SQR(xsum%^2+ysum%^2):tx%=d%*band MOD 256:SYScol%,(tx%<<8)+(tx%<<16)+(tx%<<24),,,&100:RECTANGLEFILLx%,y%,over%-4:NEXT x%,y% 46ENDPROC 47 48DEFPROCdoit 49ON ERROR END 50REPEAT:PROCcycle:WAIT:UNTILINKEY-99 51ENDPROC 52 53DEFPROCcycle 54t%=TIME:n%=TIME/7.6 MOD15:r%=16*SINRAD(t%/9+60)+18:g%=16*SINRAD(t%/8)+18:b%=15*SINRAD(t%/7+120)+18:FOR a%=0 TO 7:COLOUR(a%+n%)MOD16,a%*r%,a%*g%,a%*b%:COLOUR(15-a%+n%)MOD16,a%*r%,a%*g%,a%*b%:NEXT 55ENDPROC
� True Plasma Drawer � by Nigel Stoner 1997 � � �doit:�:�" in line ";�:� t%=�(-�) �init �setpal ti%=� �fullscrn � �0,0)�(�((�-ti%)/100)) �doit � ��init �9:� �<>22 � 9 � =ș "OS_SWINumberFromString",,"ColourTrans_SetGCOL" � col% � cx%(16),cy%(16),pal%(255) � ��pickcs � x%,y%,b%,ox%,oy% >�4:� x%=0 � 1280 � 80:ȓx%,0,1,1024:ȓ0,x%*.75,1280,1:� x% .�0,10)"Place your attractors with Select" centre%=3:� 3,15 Hȗ �:� a%=0 � centre%:�:ȗx%,y%,b%:�b%=0:ox%=x%:oy%=y%:ȏȐx%,y%,128 �:ȗ x%,y%,b% E� ox%<>x% � oy%<>y% ȏȐox%,oy%,128:ox%=x%:oy%=y%:ȏȐox%,oy%,128 '� b%=4:cx%(a%)=x%:cy%(a%)=y%:�:ȗ � � ��setpal !� set pallette "(� a%=0 � 15:�a%,a%*16,a%*16,a%*16::� #� $ %��fullscrn ¢re%=3:�pickcs ''�:�0,12)"Enter Band Width (1-99)"; ( � band:� band >0 � band <100 )band=1-(band/100) *over%=8:start%=0 +�� y%= start% � 1024-over% � over%:� x%= start% � 1280-over% � over%:xsum%=0:ysum%=0:� a%=0 � centre%:dx%=cx%(a%)-x%:dy%=cy%(a%)-y%:d2%=dx%*dx%+dy%*dy% ,�� d2% <> 0 adj%=(dx%*dy%):x2%=(dx%*adj%)>>7:y2%=(dx%*adj%)>>7:xsum%+=(x2%*cx%(a%))/d2%:ysum%+=(y2%*cy%(a%))/d2% � a%=centre%+1 -u� a%:d%=�(xsum%^2+ysum%^2):tx%=d%*band � 256:școl%,(tx%<<8)+(tx%<<16)+(tx%<<24),,,&100:ȓȐx%,y%,over%-4:� x%,y% .� / 0 ��doit 1 � � � 2�:�cycle:Ȗ:��-99 3� 4 5��cycle 6�t%=�:n%=�/7.6 �15:r%=16*��(t%/9+60)+18:g%=16*��(t%/8)+18:b%=15*��(t%/7+120)+18:� a%=0 � 7:�(a%+n%)�16,a%*r%,a%*g%,a%*b%:�(15-a%+n%)�16,a%*r%,a%*g%,a%*b%:� 7� �
00000000 0d 00 01 18 f4 20 54 72 75 65 20 50 6c 61 73 6d |..... True Plasm| 00000010 61 20 44 72 61 77 65 72 0d 00 02 1a f4 20 62 79 |a Drawer..... by| 00000020 20 4e 69 67 65 6c 20 53 74 6f 6e 65 72 20 31 39 | Nigel Stoner 19| 00000030 39 37 0d 00 03 20 ee 20 85 20 f2 64 6f 69 74 3a |97... . . .doit:| 00000040 f6 3a f1 22 20 69 6e 20 6c 69 6e 65 20 22 3b 9e |.:." in line ";.| 00000050 3a e0 0d 00 04 0c 74 25 3d b3 28 2d 91 29 0d 00 |:.....t%=.(-.)..| 00000060 05 04 0d 00 06 09 f2 69 6e 69 74 0d 00 07 0b f2 |.......init.....| 00000070 73 65 74 70 61 6c 0d 00 08 09 74 69 25 3d 91 0d |setpal....ti%=..| 00000080 00 09 0d f2 66 75 6c 6c 73 63 72 6e 0d 00 0a 1c |....fullscrn....| 00000090 f1 20 8a 30 2c 30 29 c3 28 a8 28 28 91 2d 74 69 |. .0,0).(.((.-ti| 000000a0 25 29 2f 31 30 30 29 29 0d 00 0b 09 f2 64 6f 69 |%)/100)).....doi| 000000b0 74 0d 00 0c 05 e0 0d 00 0d 04 0d 00 0e 0a dd f2 |t...............| 000000c0 69 6e 69 74 0d 00 0f 12 eb 39 3a e7 20 eb 3c 3e |init.....9:. .<>| 000000d0 32 32 20 eb 20 39 0d 00 10 05 87 0d 00 11 3d c8 |22 . 9........=.| 000000e0 99 20 22 4f 53 5f 53 57 49 4e 75 6d 62 65 72 46 |. "OS_SWINumberF| 000000f0 72 6f 6d 53 74 72 69 6e 67 22 2c 2c 22 43 6f 6c |romString",,"Col| 00000100 6f 75 72 54 72 61 6e 73 5f 53 65 74 47 43 4f 4c |ourTrans_SetGCOL| 00000110 22 20 b8 20 63 6f 6c 25 0d 00 12 1f de 20 63 78 |" . col%..... cx| 00000120 25 28 31 36 29 2c 63 79 25 28 31 36 29 2c 70 61 |%(16),cy%(16),pa| 00000130 6c 25 28 32 35 35 29 0d 00 13 05 e1 0d 00 14 04 |l%(255).........| 00000140 0d 00 15 0c dd f2 70 69 63 6b 63 73 0d 00 16 16 |......pickcs....| 00000150 ea 20 78 25 2c 79 25 2c 62 25 2c 6f 78 25 2c 6f |. x%,y%,b%,ox%,o| 00000160 79 25 0d 00 17 3e e6 34 3a e3 20 78 25 3d 30 20 |y%...>.4:. x%=0 | 00000170 b8 20 31 32 38 30 20 88 20 38 30 3a c8 93 78 25 |. 1280 . 80:..x%| 00000180 2c 30 2c 31 2c 31 30 32 34 3a c8 93 30 2c 78 25 |,0,1,1024:..0,x%| 00000190 2a 2e 37 35 2c 31 32 38 30 2c 31 3a ed 20 78 25 |*.75,1280,1:. x%| 000001a0 0d 00 18 2e f1 8a 30 2c 31 30 29 22 50 6c 61 63 |......0,10)"Plac| 000001b0 65 20 79 6f 75 72 20 61 74 74 72 61 63 74 6f 72 |e your attractor| 000001c0 73 20 77 69 74 68 20 53 65 6c 65 63 74 22 0d 00 |s with Select"..| 000001d0 19 14 63 65 6e 74 72 65 25 3d 33 3a e6 20 33 2c |..centre%=3:. 3,| 000001e0 31 35 0d 00 1a 48 c8 97 20 ee 3a e3 20 61 25 3d |15...H.. .:. a%=| 000001f0 30 20 b8 20 63 65 6e 74 72 65 25 3a f5 3a c8 97 |0 . centre%:.:..| 00000200 78 25 2c 79 25 2c 62 25 3a fd 62 25 3d 30 3a 6f |x%,y%,b%:.b%=0:o| 00000210 78 25 3d 78 25 3a 6f 79 25 3d 79 25 3a c8 8f c8 |x%=x%:oy%=y%:...| 00000220 90 78 25 2c 79 25 2c 31 32 38 0d 00 1b 11 f5 3a |.x%,y%,128.....:| 00000230 c8 97 20 78 25 2c 79 25 2c 62 25 0d 00 1c 45 e7 |.. x%,y%,b%...E.| 00000240 20 6f 78 25 3c 3e 78 25 20 84 20 6f 79 25 3c 3e | ox%<>x% . oy%<>| 00000250 79 25 20 c8 8f c8 90 6f 78 25 2c 6f 79 25 2c 31 |y% ....ox%,oy%,1| 00000260 32 38 3a 6f 78 25 3d 78 25 3a 6f 79 25 3d 79 25 |28:ox%=x%:oy%=y%| 00000270 3a c8 8f c8 90 6f 78 25 2c 6f 79 25 2c 31 32 38 |:....ox%,oy%,128| 00000280 0d 00 1d 27 fd 20 62 25 3d 34 3a 63 78 25 28 61 |...'. b%=4:cx%(a| 00000290 25 29 3d 78 25 3a 63 79 25 28 61 25 29 3d 79 25 |%)=x%:cy%(a%)=y%| 000002a0 3a ed 3a c8 97 20 87 0d 00 1e 05 e1 0d 00 1f 04 |:.:.. ..........| 000002b0 0d 00 20 0c dd f2 73 65 74 70 61 6c 0d 00 21 12 |.. ...setpal..!.| 000002c0 f4 20 73 65 74 20 70 61 6c 6c 65 74 74 65 0d 00 |. set pallette..| 000002d0 22 28 e3 20 61 25 3d 30 20 b8 20 31 35 3a fb 61 |"(. a%=0 . 15:.a| 000002e0 25 2c 61 25 2a 31 36 2c 61 25 2a 31 36 2c 61 25 |%,a%*16,a%*16,a%| 000002f0 2a 31 36 3a 3a ed 0d 00 23 05 e1 0d 00 24 04 0d |*16::...#....$..| 00000300 00 25 0e dd f2 66 75 6c 6c 73 63 72 6e 0d 00 26 |.%...fullscrn..&| 00000310 15 63 65 6e 74 72 65 25 3d 33 3a f2 70 69 63 6b |.centre%=3:.pick| 00000320 63 73 0d 00 27 27 f5 3a f1 8a 30 2c 31 32 29 22 |cs..''.:..0,12)"| 00000330 45 6e 74 65 72 20 42 61 6e 64 20 57 69 64 74 68 |Enter Band Width| 00000340 20 28 31 2d 39 39 29 22 3b 0d 00 28 20 e8 20 62 | (1-99)";..( . b| 00000350 61 6e 64 3a fd 20 62 61 6e 64 20 3e 30 20 80 20 |and:. band >0 . | 00000360 62 61 6e 64 20 3c 31 30 30 0d 00 29 16 62 61 6e |band <100..).ban| 00000370 64 3d 31 2d 28 62 61 6e 64 2f 31 30 30 29 20 0d |d=1-(band/100) .| 00000380 00 2a 14 6f 76 65 72 25 3d 38 3a 73 74 61 72 74 |.*.over%=8:start| 00000390 25 3d 30 0d 00 2b 9a e3 20 79 25 3d 20 73 74 61 |%=0..+.. y%= sta| 000003a0 72 74 25 20 b8 20 31 30 32 34 2d 6f 76 65 72 25 |rt% . 1024-over%| 000003b0 20 88 20 6f 76 65 72 25 3a e3 20 78 25 3d 20 73 | . over%:. x%= s| 000003c0 74 61 72 74 25 20 b8 20 31 32 38 30 2d 6f 76 65 |tart% . 1280-ove| 000003d0 72 25 20 88 20 6f 76 65 72 25 3a 78 73 75 6d 25 |r% . over%:xsum%| 000003e0 3d 30 3a 79 73 75 6d 25 3d 30 3a e3 20 61 25 3d |=0:ysum%=0:. a%=| 000003f0 30 20 b8 20 63 65 6e 74 72 65 25 3a 64 78 25 3d |0 . centre%:dx%=| 00000400 63 78 25 28 61 25 29 2d 78 25 3a 64 79 25 3d 63 |cx%(a%)-x%:dy%=c| 00000410 79 25 28 61 25 29 2d 79 25 3a 64 32 25 3d 64 78 |y%(a%)-y%:d2%=dx| 00000420 25 2a 64 78 25 2b 64 79 25 2a 64 79 25 0d 00 2c |%*dx%+dy%*dy%..,| 00000430 83 e7 20 64 32 25 20 3c 3e 20 30 20 20 61 64 6a |.. d2% <> 0 adj| 00000440 25 3d 28 64 78 25 2a 64 79 25 29 3a 78 32 25 3d |%=(dx%*dy%):x2%=| 00000450 28 64 78 25 2a 61 64 6a 25 29 3e 3e 37 3a 79 32 |(dx%*adj%)>>7:y2| 00000460 25 3d 28 64 78 25 2a 61 64 6a 25 29 3e 3e 37 3a |%=(dx%*adj%)>>7:| 00000470 78 73 75 6d 25 2b 3d 28 78 32 25 2a 63 78 25 28 |xsum%+=(x2%*cx%(| 00000480 61 25 29 29 2f 64 32 25 3a 79 73 75 6d 25 2b 3d |a%))/d2%:ysum%+=| 00000490 28 79 32 25 2a 63 79 25 28 61 25 29 29 2f 64 32 |(y2%*cy%(a%))/d2| 000004a0 25 20 8b 20 61 25 3d 63 65 6e 74 72 65 25 2b 31 |% . a%=centre%+1| 000004b0 0d 00 2d 75 ed 20 61 25 3a 64 25 3d b6 28 78 73 |..-u. a%:d%=.(xs| 000004c0 75 6d 25 5e 32 2b 79 73 75 6d 25 5e 32 29 3a 74 |um%^2+ysum%^2):t| 000004d0 78 25 3d 64 25 2a 62 61 6e 64 20 83 20 32 35 36 |x%=d%*band . 256| 000004e0 3a c8 99 63 6f 6c 25 2c 28 74 78 25 3c 3c 38 29 |:..col%,(tx%<<8)| 000004f0 2b 28 74 78 25 3c 3c 31 36 29 2b 28 74 78 25 3c |+(tx%<<16)+(tx%<| 00000500 3c 32 34 29 2c 2c 2c 26 31 30 30 3a c8 93 c8 90 |<24),,,&100:....| 00000510 78 25 2c 79 25 2c 6f 76 65 72 25 2d 34 3a ed 20 |x%,y%,over%-4:. | 00000520 78 25 2c 79 25 0d 00 2e 05 e1 0d 00 2f 04 0d 00 |x%,y%......./...| 00000530 30 0a dd f2 64 6f 69 74 0d 00 31 09 ee 20 85 20 |0...doit..1.. . | 00000540 e0 0d 00 32 15 f5 3a f2 63 79 63 6c 65 3a c8 96 |...2..:.cycle:..| 00000550 3a fd a6 2d 39 39 0d 00 33 05 e1 0d 00 34 04 0d |:..-99..3....4..| 00000560 00 35 0b dd f2 63 79 63 6c 65 0d 00 36 9e 74 25 |.5...cycle..6.t%| 00000570 3d 91 3a 6e 25 3d 91 2f 37 2e 36 20 83 31 35 3a |=.:n%=./7.6 .15:| 00000580 72 25 3d 31 36 2a b5 b2 28 74 25 2f 39 2b 36 30 |r%=16*..(t%/9+60| 00000590 29 2b 31 38 3a 67 25 3d 31 36 2a b5 b2 28 74 25 |)+18:g%=16*..(t%| 000005a0 2f 38 29 2b 31 38 3a 62 25 3d 31 35 2a b5 b2 28 |/8)+18:b%=15*..(| 000005b0 74 25 2f 37 2b 31 32 30 29 2b 31 38 3a e3 20 61 |t%/7+120)+18:. a| 000005c0 25 3d 30 20 b8 20 37 3a fb 28 61 25 2b 6e 25 29 |%=0 . 7:.(a%+n%)| 000005d0 83 31 36 2c 61 25 2a 72 25 2c 61 25 2a 67 25 2c |.16,a%*r%,a%*g%,| 000005e0 61 25 2a 62 25 3a fb 28 31 35 2d 61 25 2b 6e 25 |a%*b%:.(15-a%+n%| 000005f0 29 83 31 36 2c 61 25 2a 72 25 2c 61 25 2a 67 25 |).16,a%*r%,a%*g%| 00000600 2c 61 25 2a 62 25 3a ed 0d 00 37 05 e1 0d ff |,a%*b%:...7....| 0000060f