Home » Archimedes archive » Archimedes World » AW-1994-02-Disc1.adf » Disk1Feb94 » !AWFeb94/Goodies/Basic/Circles/Translate
!AWFeb94/Goodies/Basic/Circles/Translate
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 » Archimedes World » AW-1994-02-Disc1.adf » Disk1Feb94 |
Filename: | !AWFeb94/Goodies/Basic/Circles/Translate |
Read OK: | ✔ |
File size: | 01B4 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1MODE MODE 2LIBRARY "PathLib:OS_units.Paths" 3LIBRARY "PathLib:OS_units.Transforms" 4circle%=FNPath_CreateCircle(200,200,200) 5PROCCreateTransform 6PROCDrawObjects 7END 8 9DEF PROCCreateTransform 10 PROCPath_CreateTransform(translate%) 11 PROCPath_Translation(translate%,20,20) 12ENDPROC 13 14DEF PROCDrawObjects 15 REPEAT 16 SYS "Draw_Stroke",circle%,,,256 17 PROCPath_Transform(circle%,translate%) 18 PRINT TAB(0,0);"Press space bar" 19 x$=GET$ 20 UNTIL FALSE 21ENDPROC 22 23
� � ț "PathLib:OS_units.Paths" $ț "PathLib:OS_units.Transforms" +circle%=�Path_CreateCircle(200,200,200) �CreateTransform �DrawObjects � � �CreateTransform & �Path_CreateTransform(translate%) ( �Path_Translation(translate%,20,20) � � �DrawObjects � $ ș "Draw_Stroke",circle%,,,256 ) �Path_Transform(circle%,translate%) � �0,0);"Press space bar" x$=� � � � �
00000000 0d 00 01 07 eb 20 eb 0d 00 02 1f c8 9b 20 22 50 |..... ....... "P| 00000010 61 74 68 4c 69 62 3a 4f 53 5f 75 6e 69 74 73 2e |athLib:OS_units.| 00000020 50 61 74 68 73 22 0d 00 03 24 c8 9b 20 22 50 61 |Paths"...$.. "Pa| 00000030 74 68 4c 69 62 3a 4f 53 5f 75 6e 69 74 73 2e 54 |thLib:OS_units.T| 00000040 72 61 6e 73 66 6f 72 6d 73 22 0d 00 04 2b 63 69 |ransforms"...+ci| 00000050 72 63 6c 65 25 3d a4 50 61 74 68 5f 43 72 65 61 |rcle%=.Path_Crea| 00000060 74 65 43 69 72 63 6c 65 28 32 30 30 2c 32 30 30 |teCircle(200,200| 00000070 2c 32 30 30 29 0d 00 05 14 f2 43 72 65 61 74 65 |,200).....Create| 00000080 54 72 61 6e 73 66 6f 72 6d 0d 00 06 10 f2 44 72 |Transform.....Dr| 00000090 61 77 4f 62 6a 65 63 74 73 0d 00 07 05 e0 0d 00 |awObjects.......| 000000a0 08 04 0d 00 09 16 dd 20 f2 43 72 65 61 74 65 54 |....... .CreateT| 000000b0 72 61 6e 73 66 6f 72 6d 0d 00 0a 26 20 f2 50 61 |ransform...& .Pa| 000000c0 74 68 5f 43 72 65 61 74 65 54 72 61 6e 73 66 6f |th_CreateTransfo| 000000d0 72 6d 28 74 72 61 6e 73 6c 61 74 65 25 29 0d 00 |rm(translate%)..| 000000e0 0b 28 20 f2 50 61 74 68 5f 54 72 61 6e 73 6c 61 |.( .Path_Transla| 000000f0 74 69 6f 6e 28 74 72 61 6e 73 6c 61 74 65 25 2c |tion(translate%,| 00000100 32 30 2c 32 30 29 0d 00 0c 05 e1 0d 00 0d 04 0d |20,20)..........| 00000110 00 0e 12 dd 20 f2 44 72 61 77 4f 62 6a 65 63 74 |.... .DrawObject| 00000120 73 0d 00 0f 06 20 f5 0d 00 10 24 20 20 c8 99 20 |s.... ....$ .. | 00000130 22 44 72 61 77 5f 53 74 72 6f 6b 65 22 2c 63 69 |"Draw_Stroke",ci| 00000140 72 63 6c 65 25 2c 2c 2c 32 35 36 0d 00 11 29 20 |rcle%,,,256...) | 00000150 20 f2 50 61 74 68 5f 54 72 61 6e 73 66 6f 72 6d | .Path_Transform| 00000160 28 63 69 72 63 6c 65 25 2c 74 72 61 6e 73 6c 61 |(circle%,transla| 00000170 74 65 25 29 0d 00 12 1f 20 20 f1 20 8a 30 2c 30 |te%).... . .0,0| 00000180 29 3b 22 50 72 65 73 73 20 73 70 61 63 65 20 62 |);"Press space b| 00000190 61 72 22 0d 00 13 0a 20 20 78 24 3d be 0d 00 14 |ar".... x$=....| 000001a0 08 20 fd 20 a3 0d 00 15 05 e1 0d 00 16 04 0d 00 |. . ............| 000001b0 17 04 0d ff |....| 000001b4