Home » Archimedes archive » Archimedes World » AW-1994-02-Disc1.adf » Disk1Feb94 » !AWFeb94/Goodies/Basic/Cubic/RotMagTran
!AWFeb94/Goodies/Basic/Cubic/RotMagTran
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/RotMagTran |
Read OK: | ✔ |
File size: | 0289 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(rotmagtrans%) 12 PROCPath_Rotation(rotmagtrans%,PI/16) 13 PROCPath_Magnify(rotmagtrans%,.95) 14 PROCPath_Translation(rotmagtrans%,20,20) 15ENDPROC 16 17DEF PROCDrawObjects 18ORIGIN 640,512 19 REPEAT 20 SYS "Draw_Stroke",cubic% 21 PROCPath_Transform(cubic%,rotmagtrans%) 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(rotmagtrans%) & �Path_Rotation(rotmagtrans%,�/16) $ �Path_Magnify(rotmagtrans%,.95) * �Path_Translation(rotmagtrans%,20,20) � � �DrawObjects ȑ 640,512 � ș "Draw_Stroke",cubic% + �Path_Transform(cubic%,rotmagtrans%) � �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 28 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 74 72 61 6e 73 25 29 0d 00 0c 26 20 f2 |magtrans%)...& .| 000000d0 50 61 74 68 5f 52 6f 74 61 74 69 6f 6e 28 72 6f |Path_Rotation(ro| 000000e0 74 6d 61 67 74 72 61 6e 73 25 2c af 2f 31 36 29 |tmagtrans%,./16)| 000000f0 0d 00 0d 24 20 f2 50 61 74 68 5f 4d 61 67 6e 69 |...$ .Path_Magni| 00000100 66 79 28 72 6f 74 6d 61 67 74 72 61 6e 73 25 2c |fy(rotmagtrans%,| 00000110 2e 39 35 29 0d 00 0e 2a 20 f2 50 61 74 68 5f 54 |.95)...* .Path_T| 00000120 72 61 6e 73 6c 61 74 69 6f 6e 28 72 6f 74 6d 61 |ranslation(rotma| 00000130 67 74 72 61 6e 73 25 2c 32 30 2c 32 30 29 0d 00 |gtrans%,20,20)..| 00000140 0f 05 e1 0d 00 10 04 0d 00 11 12 dd 20 f2 44 72 |............ .Dr| 00000150 61 77 4f 62 6a 65 63 74 73 0d 00 12 10 c8 91 20 |awObjects...... | 00000160 36 34 30 2c 35 31 32 20 20 0d 00 13 06 20 f5 0d |640,512 .... ..| 00000170 00 14 1e 20 20 20 c8 99 20 22 44 72 61 77 5f 53 |... .. "Draw_S| 00000180 74 72 6f 6b 65 22 2c 63 75 62 69 63 25 0d 00 15 |troke",cubic%...| 00000190 2b 20 20 20 f2 50 61 74 68 5f 54 72 61 6e 73 66 |+ .Path_Transf| 000001a0 6f 72 6d 28 63 75 62 69 63 25 2c 72 6f 74 6d 61 |orm(cubic%,rotma| 000001b0 67 74 72 61 6e 73 25 29 0d 00 16 20 20 20 20 f1 |gtrans%)... .| 000001c0 20 8a 30 2c 33 29 3b 22 50 72 65 73 73 20 73 70 | .0,3);"Press sp| 000001d0 61 63 65 20 62 61 72 22 0d 00 17 0b 20 20 20 78 |ace bar".... x| 000001e0 24 3d be 0d 00 18 0f 20 20 fd 20 a3 20 20 20 20 |$=..... . . | 000001f0 20 20 0d 00 19 05 e1 0d 00 1a 04 0d 00 1b 13 dd | ..............| 00000200 20 f2 43 72 65 61 74 65 5f 43 75 72 76 65 0d 00 | .Create_Curve..| 00000210 1c 21 f2 50 61 74 68 5f 4f 62 6a 65 63 74 42 65 |.!.Path_ObjectBe| 00000220 67 69 6e 28 63 75 62 69 63 25 2c 32 30 30 29 0d |gin(cubic%,200).| 00000230 00 1d 15 20 20 f2 50 61 74 68 5f 4d 6f 76 65 28 |... .Path_Move(| 00000240 30 2c 30 29 0d 00 1e 27 20 20 f2 50 61 74 68 5f |0,0)...' .Path_| 00000250 43 75 62 69 63 28 30 2c 32 30 30 2c 34 30 30 2c |Cubic(0,200,400,| 00000260 2d 32 30 30 2c 34 30 30 2c 30 29 0d 00 1f 13 f2 |-200,400,0).....| 00000270 50 61 74 68 5f 4f 62 6a 65 63 74 45 6e 64 0d 00 |Path_ObjectEnd..| 00000280 20 05 e1 0d 00 21 04 0d ff | ....!...| 00000289