Home » Archimedes archive » Archimedes World » AW-1994-02-Disc1.adf » Disk1Feb94 » !AWFeb94/Goodies/Basic/Cubic/RotMag
!AWFeb94/Goodies/Basic/Cubic/RotMag
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/Cubic/RotMag |
Read OK: | ✔ |
File size: | 024E bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1 2MODE MODE 3LIBRARY "PathLib:OS_units.Paths" 4LIBRARY "PathLib:OS_units.Transforms" 5PROCCreate_Curve 6PROCCreateTransform 7PROCDrawObjects 8END 9 10DEF PROCCreateTransform 11 PROCPath_CreateTransform(rotmag%) 12 PROCPath_Rotation(rotmag%,PI/16) 13 PROCPath_Magnify(rotmag%,.95) 14ENDPROC 15 16 17DEF PROCDrawObjects 18ORIGIN 640,512 19 REPEAT 20 SYS "Draw_Stroke",cubic% 21 PROCPath_Transform(cubic%,rotmag%) 22 PRINT TAB(0,3);"Press space bar" 23 x$=GET$ 24 UNTIL FALSE 25ENDPROC 26 27DEF PROCCreate_Curve 28PROCPath_ObjectBegin(cubic%,200) 29 PROCPath_Move(0,0) 30 PROCPath_Cubic(0,200,400,200,400,0) 31PROCPath_ObjectEnd 32ENDPROC 33
� � ț "PathLib:OS_units.Paths" $ț "PathLib:OS_units.Transforms" �Create_Curve �CreateTransform �DrawObjects � � �CreateTransform # �Path_CreateTransform(rotmag%) ! �Path_Rotation(rotmag%,�/16) �Path_Magnify(rotmag%,.95) � � �DrawObjects ȑ 640,512 � ș "Draw_Stroke",cubic% & �Path_Transform(cubic%,rotmag%) � �0,3);"Press space bar" x$=� � � � � �Create_Curve !�Path_ObjectBegin(cubic%,200) �Path_Move(0,0) & �Path_Cubic(0,200,400,200,400,0) �Path_ObjectEnd � ! �
00000000 0d 00 01 04 0d 00 02 07 eb 20 eb 0d 00 03 1f c8 |......... ......| 00000010 9b 20 22 50 61 74 68 4c 69 62 3a 4f 53 5f 75 6e |. "PathLib:OS_un| 00000020 69 74 73 2e 50 61 74 68 73 22 0d 00 04 24 c8 9b |its.Paths"...$..| 00000030 20 22 50 61 74 68 4c 69 62 3a 4f 53 5f 75 6e 69 | "PathLib:OS_uni| 00000040 74 73 2e 54 72 61 6e 73 66 6f 72 6d 73 22 0d 00 |ts.Transforms"..| 00000050 05 11 f2 43 72 65 61 74 65 5f 43 75 72 76 65 0d |...Create_Curve.| 00000060 00 06 14 f2 43 72 65 61 74 65 54 72 61 6e 73 66 |....CreateTransf| 00000070 6f 72 6d 0d 00 07 10 f2 44 72 61 77 4f 62 6a 65 |orm.....DrawObje| 00000080 63 74 73 0d 00 08 05 e0 0d 00 09 04 0d 00 0a 16 |cts.............| 00000090 dd 20 f2 43 72 65 61 74 65 54 72 61 6e 73 66 6f |. .CreateTransfo| 000000a0 72 6d 0d 00 0b 23 20 f2 50 61 74 68 5f 43 72 65 |rm...# .Path_Cre| 000000b0 61 74 65 54 72 61 6e 73 66 6f 72 6d 28 72 6f 74 |ateTransform(rot| 000000c0 6d 61 67 25 29 0d 00 0c 21 20 f2 50 61 74 68 5f |mag%)...! .Path_| 000000d0 52 6f 74 61 74 69 6f 6e 28 72 6f 74 6d 61 67 25 |Rotation(rotmag%| 000000e0 2c af 2f 31 36 29 0d 00 0d 1f 20 f2 50 61 74 68 |,./16).... .Path| 000000f0 5f 4d 61 67 6e 69 66 79 28 72 6f 74 6d 61 67 25 |_Magnify(rotmag%| 00000100 2c 2e 39 35 29 0d 00 0e 05 e1 0d 00 0f 04 0d 00 |,.95)...........| 00000110 10 04 0d 00 11 12 dd 20 f2 44 72 61 77 4f 62 6a |....... .DrawObj| 00000120 65 63 74 73 0d 00 12 10 c8 91 20 36 34 30 2c 35 |ects...... 640,5| 00000130 31 32 20 20 0d 00 13 06 20 f5 0d 00 14 1e 20 20 |12 .... ..... | 00000140 20 c8 99 20 22 44 72 61 77 5f 53 74 72 6f 6b 65 | .. "Draw_Stroke| 00000150 22 2c 63 75 62 69 63 25 0d 00 15 26 20 20 20 f2 |",cubic%...& .| 00000160 50 61 74 68 5f 54 72 61 6e 73 66 6f 72 6d 28 63 |Path_Transform(c| 00000170 75 62 69 63 25 2c 72 6f 74 6d 61 67 25 29 0d 00 |ubic%,rotmag%)..| 00000180 16 20 20 20 20 f1 20 8a 30 2c 33 29 3b 22 50 72 |. . .0,3);"Pr| 00000190 65 73 73 20 73 70 61 63 65 20 62 61 72 22 0d 00 |ess space bar"..| 000001a0 17 0b 20 20 20 78 24 3d be 0d 00 18 0f 20 20 fd |.. x$=..... .| 000001b0 20 a3 20 20 20 20 20 20 0d 00 19 05 e1 0d 00 1a | . ........| 000001c0 04 0d 00 1b 13 dd 20 f2 43 72 65 61 74 65 5f 43 |...... .Create_C| 000001d0 75 72 76 65 0d 00 1c 21 f2 50 61 74 68 5f 4f 62 |urve...!.Path_Ob| 000001e0 6a 65 63 74 42 65 67 69 6e 28 63 75 62 69 63 25 |jectBegin(cubic%| 000001f0 2c 32 30 30 29 0d 00 1d 15 20 20 f2 50 61 74 68 |,200).... .Path| 00000200 5f 4d 6f 76 65 28 30 2c 30 29 0d 00 1e 26 20 20 |_Move(0,0)...& | 00000210 f2 50 61 74 68 5f 43 75 62 69 63 28 30 2c 32 30 |.Path_Cubic(0,20| 00000220 30 2c 34 30 30 2c 32 30 30 2c 34 30 30 2c 30 29 |0,400,200,400,0)| 00000230 0d 00 1f 13 f2 50 61 74 68 5f 4f 62 6a 65 63 74 |.....Path_Object| 00000240 45 6e 64 0d 00 20 05 e1 0d 00 21 04 0d ff |End.. ....!...| 0000024e