Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape27b_acorn_eu_1991_september.wav » Tiling
Tiling
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 tapes » Electron_User » Electron_User_tape27b_acorn_eu_1991_september.wav |
Filename: | Tiling |
Read OK: | ✔ |
File size: | 06DE bytes |
Load address: | FFFF1A00 |
Exec address: | FFFF8023 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_09_07_D-MU09_07.ssd » Tiling
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape27a_acorn_eu_1991_september.wav » Tiling
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape27b_acorn_eu_1991_september.wav » Tiling
File contents
10 REM > Tile 20 REM by Mike Cook 30 MODE 0 40 PRINT"Tiling Patterns" 50 PRINT"Using triangular six point symmetry" 60 PRINT"By Mike Cook" 70 DIM T$(30) 80 NS=12 90 DX=4*NS 100 DY=SQR(.75)*DX*2 110 DS%=(INT(DY*0.7) DIV 4)*4 120 MOVE 0,800 130 VDU 5 140 FOR A=1 TO 9 150 PLOT 0,1.5*DX,-DS% 160 PRINT ;A; 170 PLOT 0,-1.5*DX,DS% 180 PROC_DTS("7") 190 PRINT SPC(2); 200 NEXT 210 MOVE 16,800-3*DY 220 FOR A=1 TO 9 230 PROC_DTS(STR$(A)) 240 IF A=8 THEN PRINT SPC(4); ELSE PRINT SPC(3); 250 NEXT 260 TL=0 270 VDU 4 280 PRINT TAB(0,18);"Pattern tiling" 290 PRINT"Type in the Rules" 300 PRINT"Press return to end" 310 PRINT"Then :- " 320 PRINT"S to change scale" 330 PRINT"P to print out" 340 PRINT"Any other key for another pattern" 350 PRINT"Now what are the rules ?" 360 REPEAT 370 INPUT T$(TL) 380 TL=TL+1 390 UNTIL T$(TL-1)="" 400 TL=TL-1 410 DX=4*NS 420 DY=SQR(.75)*DX*2 430 LF=0:Y=0:L=0 440 CLS 450 REPEAT 460 TC=0 470 BS=1 480 IF LF=0 THEN MOVE 0,Y ELSE MOVE -DX,Y 490 LF=LF EOR 1 500 REPEAT 510 TD=VAL(MID$(T$(L),BS,1)) 520 PROC_TD(TD) 530 TC=TC+1 540 BS=BS+1 550 IF BS>LEN(T$(L)) THEN BS=1 560 UNTIL TC*DX > 1280 570 Y=Y+DY 580 L=L+1 590 IF L=TL THEN L=0 600 UNTIL Y>1023 610 A$=GET$ 620 PRINT TAB(0,31) 630 IF A$="P" OR A$="p" THEN PROC_DUMP 640 IF A$="S" OR A$="s" THEN INPUT"New Scale ",NS:GOTO 410 650 CLS:GOTO 90 660 END 670 DEF PROC_DTS(C$) 680 FOR B=1 TO LEN(C$) 690 TD=VAL(MID$(C$,B,1)) 700 PROC_TD(TD) 710 NEXT 720 ENDPROC 730 DEF PROC_TD(T) 740 LOCAL A 750 IF T=8 THEN PROC_CT1:ENDPROC 760 IF T=9 THEN PROC_CT2:ENDPROC 770 IF (T AND 1)=0 THEN A=0 ELSE A=1 780 PLOT A,DX,DY 790 IF (T AND 2)=0 THEN A=0 ELSE A=1 800 PLOT A,DX,-DY 810 IF (T AND 4)=0 THEN A=0 ELSE A=1 820 PLOT A,-2*DX,0 830 PLOT 0,2*DX,0 840 ENDPROC 850 DEF PROC_CT1 860 A=DY DIV 2 870 PLOT 1,DX,A 880 PLOT 1,0,A 890 PLOT 0,0,-A 900 PLOT 1,DX,-A 910 ENDPROC 920 DEF PROC_CT2 930 A=DY DIV 2 940 PLOT 1,0,A 950 PLOT 1,-DX,A 960 PLOT 0,DX,-A 970 PLOT 1,DX,A 980 PLOT 0,-DX,-DY 990 ENDPROC 1000 DEF PROC_DUMP 1010 PRINT"Insert your dump routine here" 1020 REPEAT UNTIL GET 1030 ENDPROC 1040 REM Archimedes/BBC A3000 machines change: 1050 REM 1010 ss%=ss%+1 1060 REM 1020 OSCLI("ScreenSave Pattern"+STR$ss%)
� > Tile � by Mike Cook � 0 ( �"Tiling Patterns" 2+ �"Using triangular six point symmetry" < �"By Mike Cook" F � T$(30) P NS=12 Z DX=4*NS d DY=�(.75)*DX*2 n DS%=(�(DY*0.7) � 4)*4 x � 0,800 � � 5 � � A=1 � 9 � � 0,1.5*DX,-DS% � � ;A; � � 0,-1.5*DX,DS% � �_DTS("7") � � �(2); � � � � 16,800-3*DY � � A=1 � 9 � �_DTS(�(A)) � � A=8 � � �(4); � � �(3); � � TL=0 � 4 � �0,18);"Pattern tiling" " �"Type in the Rules" , �"Press return to end" 6 �"Then :- " @ �"S to change scale" J �"P to print out" T) �"Any other key for another pattern" ^ �"Now what are the rules ?" h � r � T$(TL) | TL=TL+1 � � T$(TL-1)="" � TL=TL-1 � DX=4*NS � DY=�(.75)*DX*2 � LF=0:Y=0:L=0 � � � � � TC=0 � BS=1 � � LF=0 � � 0,Y � � -DX,Y � LF=LF � 1 � � � TD=�(�T$(L),BS,1)) �_TD(TD) TC=TC+1 BS=BS+1 & � BS>�(T$(L)) � BS=1 0 � TC*DX > 1280 : Y=Y+DY D L=L+1 N � L=TL � L=0 X � Y>1023 b A$=� l � �0,31) v � A$="P" � A$="p" � �_DUMP �0 � A$="S" � A$="s" � �"New Scale ",NS:� �tZA � �:� �DZ@ � � � � �_DTS(C$) � � B=1 � �(C$) � TD=�(�C$,B,1)) � �_TD(TD) � � � � � � �_TD(T) � � A � � T=8 � �_CT1:� � � T=9 � �_CT2:� � (T � 1)=0 � A=0 � A=1 � A,DX,DY � (T � 2)=0 � A=0 � A=1 � A,DX,-DY * � (T � 4)=0 � A=0 � A=1 4 � A,-2*DX,0 > � 0,2*DX,0 H � R � �_CT1 \ A=DY � 2 f � 1,DX,A p � 1,0,A z � 0,0,-A � � 1,DX,-A � � � � �_CT2 � A=DY � 2 � � 1,0,A � � 1,-DX,A � � 0,DX,-A � � 1,DX,A � � 0,-DX,-DY � � � � �_DUMP �% �"Insert your dump routine here" � � � � � , � Archimedes/BBC A3000 machines change: � 1010 ss%=ss%+1 $/ � 1020 OSCLI("ScreenSave Pattern"+STR$ss%) �
00000000 0d 00 0a 0d 20 f4 20 3e 20 54 69 6c 65 0d 00 14 |.... . > Tile...| 00000010 13 20 f4 20 62 79 20 4d 69 6b 65 20 43 6f 6f 6b |. . by Mike Cook| 00000020 0d 00 1e 08 20 eb 20 30 0d 00 28 17 20 f1 22 54 |.... . 0..(. ."T| 00000030 69 6c 69 6e 67 20 50 61 74 74 65 72 6e 73 22 0d |iling Patterns".| 00000040 00 32 2b 20 f1 22 55 73 69 6e 67 20 74 72 69 61 |.2+ ."Using tria| 00000050 6e 67 75 6c 61 72 20 73 69 78 20 70 6f 69 6e 74 |ngular six point| 00000060 20 73 79 6d 6d 65 74 72 79 22 0d 00 3c 14 20 f1 | symmetry"..<. .| 00000070 22 42 79 20 4d 69 6b 65 20 43 6f 6f 6b 22 0d 00 |"By Mike Cook"..| 00000080 46 0d 20 de 20 54 24 28 33 30 29 0d 00 50 0a 20 |F. . T$(30)..P. | 00000090 4e 53 3d 31 32 0d 00 5a 0c 20 44 58 3d 34 2a 4e |NS=12..Z. DX=4*N| 000000a0 53 0d 00 64 13 20 44 59 3d b6 28 2e 37 35 29 2a |S..d. DY=.(.75)*| 000000b0 44 58 2a 32 0d 00 6e 1a 20 44 53 25 3d 28 a8 28 |DX*2..n. DS%=(.(| 000000c0 44 59 2a 30 2e 37 29 20 81 20 34 29 2a 34 0d 00 |DY*0.7) . 4)*4..| 000000d0 78 0c 20 ec 20 30 2c 38 30 30 0d 00 82 08 20 ef |x. . 0,800.... .| 000000e0 20 35 0d 00 8c 0e 20 e3 20 41 3d 31 20 b8 20 39 | 5.... . A=1 . 9| 000000f0 0d 00 96 14 20 f0 20 30 2c 31 2e 35 2a 44 58 2c |.... . 0,1.5*DX,| 00000100 2d 44 53 25 0d 00 a0 0a 20 f1 20 3b 41 3b 0d 00 |-DS%.... . ;A;..| 00000110 aa 14 20 f0 20 30 2c 2d 31 2e 35 2a 44 58 2c 44 |.. . 0,-1.5*DX,D| 00000120 53 25 0d 00 b4 0f 20 f2 5f 44 54 53 28 22 37 22 |S%.... ._DTS("7"| 00000130 29 0d 00 be 0c 20 f1 20 89 28 32 29 3b 0d 00 c8 |).... . .(2);...| 00000140 06 20 ed 0d 00 d2 12 20 ec 20 31 36 2c 38 30 30 |. ..... . 16,800| 00000150 2d 33 2a 44 59 0d 00 dc 0e 20 e3 20 41 3d 31 20 |-3*DY.... . A=1 | 00000160 b8 20 39 0d 00 e6 10 20 f2 5f 44 54 53 28 c3 28 |. 9.... ._DTS(.(| 00000170 41 29 29 0d 00 f0 1e 20 e7 20 41 3d 38 20 8c 20 |A)).... . A=8 . | 00000180 f1 20 89 28 34 29 3b 20 8b 20 f1 20 89 28 33 29 |. .(4); . . .(3)| 00000190 3b 0d 00 fa 06 20 ed 0d 01 04 09 20 54 4c 3d 30 |;.... ..... TL=0| 000001a0 0d 01 0e 08 20 ef 20 34 0d 01 18 1e 20 f1 20 8a |.... . 4.... . .| 000001b0 30 2c 31 38 29 3b 22 50 61 74 74 65 72 6e 20 74 |0,18);"Pattern t| 000001c0 69 6c 69 6e 67 22 0d 01 22 19 20 f1 22 54 79 70 |iling"..". ."Typ| 000001d0 65 20 69 6e 20 74 68 65 20 52 75 6c 65 73 22 0d |e in the Rules".| 000001e0 01 2c 1b 20 f1 22 50 72 65 73 73 20 72 65 74 75 |.,. ."Press retu| 000001f0 72 6e 20 74 6f 20 65 6e 64 22 0d 01 36 10 20 f1 |rn to end"..6. .| 00000200 22 54 68 65 6e 20 3a 2d 20 22 0d 01 40 19 20 f1 |"Then :- "..@. .| 00000210 22 53 20 74 6f 20 63 68 61 6e 67 65 20 73 63 61 |"S to change sca| 00000220 6c 65 22 0d 01 4a 16 20 f1 22 50 20 74 6f 20 70 |le"..J. ."P to p| 00000230 72 69 6e 74 20 6f 75 74 22 0d 01 54 29 20 f1 22 |rint out"..T) ."| 00000240 41 6e 79 20 6f 74 68 65 72 20 6b 65 79 20 66 6f |Any other key fo| 00000250 72 20 61 6e 6f 74 68 65 72 20 70 61 74 74 65 72 |r another patter| 00000260 6e 22 0d 01 5e 20 20 f1 22 4e 6f 77 20 77 68 61 |n"..^ ."Now wha| 00000270 74 20 61 72 65 20 74 68 65 20 72 75 6c 65 73 20 |t are the rules | 00000280 3f 22 0d 01 68 06 20 f5 0d 01 72 0d 20 e8 20 54 |?"..h. ...r. . T| 00000290 24 28 54 4c 29 0d 01 7c 0c 20 54 4c 3d 54 4c 2b |$(TL)..|. TL=TL+| 000002a0 31 0d 01 86 12 20 fd 20 54 24 28 54 4c 2d 31 29 |1.... . T$(TL-1)| 000002b0 3d 22 22 0d 01 90 0c 20 54 4c 3d 54 4c 2d 31 0d |="".... TL=TL-1.| 000002c0 01 9a 0c 20 44 58 3d 34 2a 4e 53 0d 01 a4 13 20 |... DX=4*NS.... | 000002d0 44 59 3d b6 28 2e 37 35 29 2a 44 58 2a 32 0d 01 |DY=.(.75)*DX*2..| 000002e0 ae 11 20 4c 46 3d 30 3a 59 3d 30 3a 4c 3d 30 0d |.. LF=0:Y=0:L=0.| 000002f0 01 b8 06 20 db 0d 01 c2 06 20 f5 0d 01 cc 09 20 |... ..... ..... | 00000300 54 43 3d 30 0d 01 d6 09 20 42 53 3d 31 0d 01 e0 |TC=0.... BS=1...| 00000310 1d 20 e7 20 4c 46 3d 30 20 8c 20 ec 20 30 2c 59 |. . LF=0 . . 0,Y| 00000320 20 8b 20 ec 20 2d 44 58 2c 59 0d 01 ea 0e 20 4c | . . -DX,Y.... L| 00000330 46 3d 4c 46 20 82 20 31 0d 01 f4 06 20 f5 0d 01 |F=LF . 1.... ...| 00000340 fe 17 20 54 44 3d bb 28 c1 54 24 28 4c 29 2c 42 |.. TD=.(.T$(L),B| 00000350 53 2c 31 29 29 0d 02 08 0d 20 f2 5f 54 44 28 54 |S,1)).... ._TD(T| 00000360 44 29 0d 02 12 0c 20 54 43 3d 54 43 2b 31 0d 02 |D).... TC=TC+1..| 00000370 1c 0c 20 42 53 3d 42 53 2b 31 0d 02 26 19 20 e7 |.. BS=BS+1..&. .| 00000380 20 42 53 3e a9 28 54 24 28 4c 29 29 20 8c 20 42 | BS>.(T$(L)) . B| 00000390 53 3d 31 0d 02 30 13 20 fd 20 54 43 2a 44 58 20 |S=1..0. . TC*DX | 000003a0 3e 20 31 32 38 30 0d 02 3a 0b 20 59 3d 59 2b 44 |> 1280..:. Y=Y+D| 000003b0 59 0d 02 44 0a 20 4c 3d 4c 2b 31 0d 02 4e 11 20 |Y..D. L=L+1..N. | 000003c0 e7 20 4c 3d 54 4c 20 8c 20 4c 3d 30 0d 02 58 0d |. L=TL . L=0..X.| 000003d0 20 fd 20 59 3e 31 30 32 33 0d 02 62 09 20 41 24 | . Y>1023..b. A$| 000003e0 3d be 0d 02 6c 0d 20 f1 20 8a 30 2c 33 31 29 0d |=...l. . .0,31).| 000003f0 02 76 1f 20 e7 20 41 24 3d 22 50 22 20 84 20 41 |.v. . A$="P" . A| 00000400 24 3d 22 70 22 20 8c 20 f2 5f 44 55 4d 50 0d 02 |$="p" . ._DUMP..| 00000410 80 30 20 e7 20 41 24 3d 22 53 22 20 84 20 41 24 |.0 . A$="S" . A$| 00000420 3d 22 73 22 20 8c 20 e8 22 4e 65 77 20 53 63 61 |="s" . ."New Sca| 00000430 6c 65 20 22 2c 4e 53 3a e5 20 8d 74 5a 41 0d 02 |le ",NS:. .tZA..| 00000440 8a 0d 20 db 3a e5 20 8d 44 5a 40 0d 02 94 06 20 |.. .:. .DZ@.... | 00000450 e0 0d 02 9e 10 20 dd 20 f2 5f 44 54 53 28 43 24 |..... . ._DTS(C$| 00000460 29 0d 02 a8 12 20 e3 20 42 3d 31 20 b8 20 a9 28 |).... . B=1 . .(| 00000470 43 24 29 0d 02 b2 13 20 54 44 3d bb 28 c1 43 24 |C$).... TD=.(.C$| 00000480 2c 42 2c 31 29 29 0d 02 bc 0d 20 f2 5f 54 44 28 |,B,1)).... ._TD(| 00000490 54 44 29 0d 02 c6 06 20 ed 0d 02 d0 06 20 e1 0d |TD).... ..... ..| 000004a0 02 da 0e 20 dd 20 f2 5f 54 44 28 54 29 0d 02 e4 |... . ._TD(T)...| 000004b0 08 20 ea 20 41 0d 02 ee 14 20 e7 20 54 3d 38 20 |. . A.... . T=8 | 000004c0 8c 20 f2 5f 43 54 31 3a e1 0d 02 f8 14 20 e7 20 |. ._CT1:..... . | 000004d0 54 3d 39 20 8c 20 f2 5f 43 54 32 3a e1 0d 03 02 |T=9 . ._CT2:....| 000004e0 1c 20 e7 20 28 54 20 80 20 31 29 3d 30 20 8c 20 |. . (T . 1)=0 . | 000004f0 41 3d 30 20 8b 20 41 3d 31 0d 03 0c 0e 20 f0 20 |A=0 . A=1.... . | 00000500 41 2c 44 58 2c 44 59 0d 03 16 1c 20 e7 20 28 54 |A,DX,DY.... . (T| 00000510 20 80 20 32 29 3d 30 20 8c 20 41 3d 30 20 8b 20 | . 2)=0 . A=0 . | 00000520 41 3d 31 0d 03 20 0f 20 f0 20 41 2c 44 58 2c 2d |A=1.. . . A,DX,-| 00000530 44 59 0d 03 2a 1c 20 e7 20 28 54 20 80 20 34 29 |DY..*. . (T . 4)| 00000540 3d 30 20 8c 20 41 3d 30 20 8b 20 41 3d 31 0d 03 |=0 . A=0 . A=1..| 00000550 34 10 20 f0 20 41 2c 2d 32 2a 44 58 2c 30 0d 03 |4. . A,-2*DX,0..| 00000560 3e 0f 20 f0 20 30 2c 32 2a 44 58 2c 30 0d 03 48 |>. . 0,2*DX,0..H| 00000570 06 20 e1 0d 03 52 0c 20 dd 20 f2 5f 43 54 31 0d |. ...R. . ._CT1.| 00000580 03 5c 0d 20 41 3d 44 59 20 81 20 32 0d 03 66 0d |.\. A=DY . 2..f.| 00000590 20 f0 20 31 2c 44 58 2c 41 0d 03 70 0c 20 f0 20 | . 1,DX,A..p. . | 000005a0 31 2c 30 2c 41 0d 03 7a 0d 20 f0 20 30 2c 30 2c |1,0,A..z. . 0,0,| 000005b0 2d 41 0d 03 84 0e 20 f0 20 31 2c 44 58 2c 2d 41 |-A.... . 1,DX,-A| 000005c0 0d 03 8e 06 20 e1 0d 03 98 0c 20 dd 20 f2 5f 43 |.... ..... . ._C| 000005d0 54 32 0d 03 a2 0d 20 41 3d 44 59 20 81 20 32 0d |T2.... A=DY . 2.| 000005e0 03 ac 0c 20 f0 20 31 2c 30 2c 41 0d 03 b6 0e 20 |... . 1,0,A.... | 000005f0 f0 20 31 2c 2d 44 58 2c 41 0d 03 c0 0e 20 f0 20 |. 1,-DX,A.... . | 00000600 30 2c 44 58 2c 2d 41 0d 03 ca 0d 20 f0 20 31 2c |0,DX,-A.... . 1,| 00000610 44 58 2c 41 0d 03 d4 10 20 f0 20 30 2c 2d 44 58 |DX,A.... . 0,-DX| 00000620 2c 2d 44 59 0d 03 de 06 20 e1 0d 03 e8 0d 20 dd |,-DY.... ..... .| 00000630 20 f2 5f 44 55 4d 50 0d 03 f2 25 20 f1 22 49 6e | ._DUMP...% ."In| 00000640 73 65 72 74 20 79 6f 75 72 20 64 75 6d 70 20 72 |sert your dump r| 00000650 6f 75 74 69 6e 65 20 68 65 72 65 22 0d 03 fc 0a |outine here"....| 00000660 20 f5 20 fd 20 a5 0d 04 06 06 20 e1 0d 04 10 2c | . . ..... ....,| 00000670 20 f4 20 41 72 63 68 69 6d 65 64 65 73 2f 42 42 | . Archimedes/BB| 00000680 43 20 41 33 30 30 30 20 6d 61 63 68 69 6e 65 73 |C A3000 machines| 00000690 20 63 68 61 6e 67 65 3a 0d 04 1a 15 20 f4 20 31 | change:.... . 1| 000006a0 30 31 30 20 73 73 25 3d 73 73 25 2b 31 0d 04 24 |010 ss%=ss%+1..$| 000006b0 2f 20 f4 20 31 30 32 30 20 4f 53 43 4c 49 28 22 |/ . 1020 OSCLI("| 000006c0 53 63 72 65 65 6e 53 61 76 65 20 50 61 74 74 65 |ScreenSave Patte| 000006d0 72 6e 22 2b 53 54 52 24 73 73 25 29 0d ff |rn"+STR$ss%)..| 000006de