Home » Personal collection » Acorn hard disk » files » BallBot » Samples/Processing/DistTDS
Samples/Processing/DistTDS
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 hard disk » files » BallBot |
Filename: | Samples/Processing/DistTDS |
Read OK: | ✔ |
File size: | 01C6 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10MODE 0 20*SPOOL angles 30PRINT"CREATE LINEDIST";:VDU10,32 40FORl=1TO256 50ang=0.5+l*30/256 60d=0.1/TAN(RAD(ang)) 70rd=INT(d/3*255) 80IF rd>255 THEN rd=255 90w=DEG(ATN(0.03/d))/30*128 100PRINTSTR$~rd;" C, "; 110IF (l MOD8)=0THENVDU10,32 120NEXT 130PRINT"SMUDGE";:VDU10,10 140: 150PRINT"CREATE LINEWIDTH";:VDU10,32 160FORl=1TO256 170ang=0.5+l*30/256 180d=0.1/TAN(RAD(ang)) 190rd=INT(d/3*255) 200IF rd>255 THEN rd=255 210w=DEG(ATN(0.03/d))/30*128 220PRINTSTR$~w;" C, "; 230IF (l MOD8)=0THENVDU10,32 240NEXT 250PRINT"SMUDGE";:VDU10 260*SPOOL
� 0 *SPOOL angles �"CREATE LINEDIST";:�10,32 (�l=1�256 2ang=0.5+l*30/256 <d=0.1/�(�(ang)) Frd=�(d/3*255) P� rd>255 � rd=255 Zw=�(�(0.03/d))/30*128 d��~rd;" C, "; n� (l �8)=0��10,32 x� ��"SMUDGE";:�10,10 �: ��"CREATE LINEWIDTH";:�10,32 ��l=1�256 �ang=0.5+l*30/256 �d=0.1/�(�(ang)) �rd=�(d/3*255) �� rd>255 � rd=255 �w=�(�(0.03/d))/30*128 ���~w;" C, "; �� (l �8)=0��10,32 �� ��"SMUDGE";:�10 *SPOOL �
00000000 0d 00 0a 07 eb 20 30 0d 00 14 11 2a 53 50 4f 4f |..... 0....*SPOO| 00000010 4c 20 61 6e 67 6c 65 73 0d 00 1e 1e f1 22 43 52 |L angles....."CR| 00000020 45 41 54 45 20 4c 49 4e 45 44 49 53 54 22 3b 3a |EATE LINEDIST";:| 00000030 ef 31 30 2c 33 32 0d 00 28 0c e3 6c 3d 31 b8 32 |.10,32..(..l=1.2| 00000040 35 36 0d 00 32 14 61 6e 67 3d 30 2e 35 2b 6c 2a |56..2.ang=0.5+l*| 00000050 33 30 2f 32 35 36 0d 00 3c 13 64 3d 30 2e 31 2f |30/256..<.d=0.1/| 00000060 b7 28 b2 28 61 6e 67 29 29 0d 00 46 11 72 64 3d |.(.(ang))..F.rd=| 00000070 a8 28 64 2f 33 2a 32 35 35 29 0d 00 50 15 e7 20 |.(d/3*255)..P.. | 00000080 72 64 3e 32 35 35 20 8c 20 72 64 3d 32 35 35 0d |rd>255 . rd=255.| 00000090 00 5a 19 77 3d 9d 28 99 28 30 2e 30 33 2f 64 29 |.Z.w=.(.(0.03/d)| 000000a0 29 2f 33 30 2a 31 32 38 0d 00 64 11 f1 c3 7e 72 |)/30*128..d...~r| 000000b0 64 3b 22 20 43 2c 20 22 3b 0d 00 6e 15 e7 20 28 |d;" C, ";..n.. (| 000000c0 6c 20 83 38 29 3d 30 8c ef 31 30 2c 33 32 0d 00 |l .8)=0..10,32..| 000000d0 78 05 ed 0d 00 82 15 f1 22 53 4d 55 44 47 45 22 |x......."SMUDGE"| 000000e0 3b 3a ef 31 30 2c 31 30 0d 00 8c 05 3a 0d 00 96 |;:.10,10....:...| 000000f0 1f f1 22 43 52 45 41 54 45 20 4c 49 4e 45 57 49 |.."CREATE LINEWI| 00000100 44 54 48 22 3b 3a ef 31 30 2c 33 32 0d 00 a0 0c |DTH";:.10,32....| 00000110 e3 6c 3d 31 b8 32 35 36 0d 00 aa 14 61 6e 67 3d |.l=1.256....ang=| 00000120 30 2e 35 2b 6c 2a 33 30 2f 32 35 36 0d 00 b4 13 |0.5+l*30/256....| 00000130 64 3d 30 2e 31 2f b7 28 b2 28 61 6e 67 29 29 0d |d=0.1/.(.(ang)).| 00000140 00 be 11 72 64 3d a8 28 64 2f 33 2a 32 35 35 29 |...rd=.(d/3*255)| 00000150 0d 00 c8 15 e7 20 72 64 3e 32 35 35 20 8c 20 72 |..... rd>255 . r| 00000160 64 3d 32 35 35 0d 00 d2 19 77 3d 9d 28 99 28 30 |d=255....w=.(.(0| 00000170 2e 30 33 2f 64 29 29 2f 33 30 2a 31 32 38 0d 00 |.03/d))/30*128..| 00000180 dc 10 f1 c3 7e 77 3b 22 20 43 2c 20 22 3b 0d 00 |....~w;" C, ";..| 00000190 e6 15 e7 20 28 6c 20 83 38 29 3d 30 8c ef 31 30 |... (l .8)=0..10| 000001a0 2c 33 32 0d 00 f0 05 ed 0d 00 fa 12 f1 22 53 4d |,32.........."SM| 000001b0 55 44 47 45 22 3b 3a ef 31 30 0d 01 04 0a 2a 53 |UDGE";:.10....*S| 000001c0 50 4f 4f 4c 0d ff |POOL..| 000001c6