Home » Archimedes archive » Archimedes World » AW-1994-04-Disc1.adf » Disk1Apr94 » !AWApr94/Goodies/Basic/Objects/Polygon
!AWApr94/Goodies/Basic/Objects/Polygon
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-04-Disc1.adf » Disk1Apr94 |
Filename: | !AWApr94/Goodies/Basic/Objects/Polygon |
Read OK: | ✔ |
File size: | 017C bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1 2LIBRARY "PathLib:OS_units.Draw" 3 4REM Creates a draw file consting of only a 40 byte header 5 file%=FNDraw_CreateFile("NullFile",1000) 6 7REM Creates a regular polygon 8 PROCDraw_PathBegin(-1,0,0,2) 9 PROCDraw_RegularPolygon(640,512,300,6) 10 PROCDraw_PathEnd 11 12REM Save this file to the Pipe filing system 13 PROCDraw_SaveToPipeFS("Polygon",file%) 14 15END
ț "PathLib:OS_units.Draw" ;� Creates a draw file consting of only a 40 byte header / file%=�Draw_CreateFile("NullFile",1000) � Creates a regular polygon ! �Draw_PathBegin(-1,0,0,2) + �Draw_RegularPolygon(640,512,300,6) �Draw_PathEnd .� Save this file to the Pipe filing system + �Draw_SaveToPipeFS("Polygon",file%) � �
00000000 0d 00 01 04 0d 00 02 1e c8 9b 20 22 50 61 74 68 |.......... "Path| 00000010 4c 69 62 3a 4f 53 5f 75 6e 69 74 73 2e 44 72 61 |Lib:OS_units.Dra| 00000020 77 22 0d 00 03 04 0d 00 04 3b f4 20 43 72 65 61 |w".......;. Crea| 00000030 74 65 73 20 61 20 64 72 61 77 20 66 69 6c 65 20 |tes a draw file | 00000040 63 6f 6e 73 74 69 6e 67 20 6f 66 20 6f 6e 6c 79 |consting of only| 00000050 20 61 20 34 30 20 62 79 74 65 20 68 65 61 64 65 | a 40 byte heade| 00000060 72 0d 00 05 2f 20 20 20 20 66 69 6c 65 25 3d a4 |r.../ file%=.| 00000070 44 72 61 77 5f 43 72 65 61 74 65 46 69 6c 65 28 |Draw_CreateFile(| 00000080 22 4e 75 6c 6c 46 69 6c 65 22 2c 31 30 30 30 29 |"NullFile",1000)| 00000090 0d 00 06 04 0d 00 07 1f f4 20 43 72 65 61 74 65 |......... Create| 000000a0 73 20 61 20 72 65 67 75 6c 61 72 20 70 6f 6c 79 |s a regular poly| 000000b0 67 6f 6e 0d 00 08 21 20 20 20 20 f2 44 72 61 77 |gon...! .Draw| 000000c0 5f 50 61 74 68 42 65 67 69 6e 28 2d 31 2c 30 2c |_PathBegin(-1,0,| 000000d0 30 2c 32 29 0d 00 09 2b 20 20 20 20 f2 44 72 61 |0,2)...+ .Dra| 000000e0 77 5f 52 65 67 75 6c 61 72 50 6f 6c 79 67 6f 6e |w_RegularPolygon| 000000f0 28 36 34 30 2c 35 31 32 2c 33 30 30 2c 36 29 0d |(640,512,300,6).| 00000100 00 0a 15 20 20 20 20 f2 44 72 61 77 5f 50 61 74 |... .Draw_Pat| 00000110 68 45 6e 64 0d 00 0b 04 0d 00 0c 2e f4 20 53 61 |hEnd......... Sa| 00000120 76 65 20 74 68 69 73 20 66 69 6c 65 20 74 6f 20 |ve this file to | 00000130 74 68 65 20 50 69 70 65 20 66 69 6c 69 6e 67 20 |the Pipe filing | 00000140 73 79 73 74 65 6d 0d 00 0d 2b 20 20 20 20 f2 44 |system...+ .D| 00000150 72 61 77 5f 53 61 76 65 54 6f 50 69 70 65 46 53 |raw_SaveToPipeFS| 00000160 28 22 50 6f 6c 79 67 6f 6e 22 2c 66 69 6c 65 25 |("Polygon",file%| 00000170 29 0d 00 0e 04 0d 00 0f 05 e0 0d ff |)...........| 0000017c