Home » Archimedes archive » Archimedes World » AW-1994-04-Disc1.adf » Disk1Apr94 » !AWApr94/Goodies/Basic/Style/Dashes/DotDash
!AWApr94/Goodies/Basic/Style/Dashes/DotDash
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/Style/Dashes/DotDash |
Read OK: | ✔ |
File size: | 023C 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 Create a straight line object 8 9 PROCDraw_DashedLines(style%) 10 PROCCreate_Object(32<<8,style%) 11 12 13REM Save this file to the Pipe filing system 14 PROCDraw_SaveToPipeFS("DotDash",file%) 15 16END 17 18DEF PROCCreate_Object(thickness%,style%) 19 PROCDraw_PathBegin(-1,0,thickness%,style%) 20 PROCDraw_DotDashPattern(50) 21 PROCDraw_Move(60,50) : PROCDraw_Draw(800,50) 22 PROCDraw_PathEnd 23 ENDPROC
ț "PathLib:OS_units.Draw" ;� Creates a draw file consting of only a 40 byte header / file%=�Draw_CreateFile("NullFile",1000) %� Create a straight line object ! �Draw_DashedLines(style%) $ �Create_Object(32<<8,style%) .� Save this file to the Pipe filing system + �Draw_SaveToPipeFS("DotDash",file%) � '� �Create_Object(thickness%,style%) / �Draw_PathBegin(-1,0,thickness%,style%) �Draw_DotDashPattern(50) . �Draw_Move(60,50) : �Draw_Draw(800,50) �Draw_PathEnd � �
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 25 f4 20 43 72 65 61 74 65 |.......%. Create| 000000a0 20 61 20 73 74 72 61 69 67 68 74 20 6c 69 6e 65 | a straight line| 000000b0 20 6f 62 6a 65 63 74 20 20 0d 00 08 08 20 20 20 | object .... | 000000c0 20 0d 00 09 21 20 20 20 20 f2 44 72 61 77 5f 44 | ...! .Draw_D| 000000d0 61 73 68 65 64 4c 69 6e 65 73 28 73 74 79 6c 65 |ashedLines(style| 000000e0 25 29 0d 00 0a 24 20 20 20 20 f2 43 72 65 61 74 |%)...$ .Creat| 000000f0 65 5f 4f 62 6a 65 63 74 28 33 32 3c 3c 38 2c 73 |e_Object(32<<8,s| 00000100 74 79 6c 65 25 29 0d 00 0b 08 20 20 20 20 0d 00 |tyle%).... ..| 00000110 0c 04 0d 00 0d 2e f4 20 53 61 76 65 20 74 68 69 |....... Save thi| 00000120 73 20 66 69 6c 65 20 74 6f 20 74 68 65 20 50 69 |s file to the Pi| 00000130 70 65 20 66 69 6c 69 6e 67 20 73 79 73 74 65 6d |pe filing system| 00000140 0d 00 0e 2b 20 20 20 20 f2 44 72 61 77 5f 53 61 |...+ .Draw_Sa| 00000150 76 65 54 6f 50 69 70 65 46 53 28 22 44 6f 74 44 |veToPipeFS("DotD| 00000160 61 73 68 22 2c 66 69 6c 65 25 29 0d 00 0f 04 0d |ash",file%).....| 00000170 00 10 05 e0 0d 00 11 04 0d 00 12 27 dd 20 f2 43 |...........'. .C| 00000180 72 65 61 74 65 5f 4f 62 6a 65 63 74 28 74 68 69 |reate_Object(thi| 00000190 63 6b 6e 65 73 73 25 2c 73 74 79 6c 65 25 29 0d |ckness%,style%).| 000001a0 00 13 2f 20 20 20 20 f2 44 72 61 77 5f 50 61 74 |../ .Draw_Pat| 000001b0 68 42 65 67 69 6e 28 2d 31 2c 30 2c 74 68 69 63 |hBegin(-1,0,thic| 000001c0 6b 6e 65 73 73 25 2c 73 74 79 6c 65 25 29 0d 00 |kness%,style%)..| 000001d0 14 20 20 20 20 20 f2 44 72 61 77 5f 44 6f 74 44 |. .Draw_DotD| 000001e0 61 73 68 50 61 74 74 65 72 6e 28 35 30 29 0d 00 |ashPattern(50)..| 000001f0 15 2e 20 20 20 20 f2 44 72 61 77 5f 4d 6f 76 65 |.. .Draw_Move| 00000200 28 36 30 2c 35 30 29 20 3a 20 f2 44 72 61 77 5f |(60,50) : .Draw_| 00000210 44 72 61 77 28 38 30 30 2c 35 30 29 0d 00 16 15 |Draw(800,50)....| 00000220 20 20 20 20 f2 44 72 61 77 5f 50 61 74 68 45 6e | .Draw_PathEn| 00000230 64 0d 00 17 09 20 20 20 20 e1 0d ff |d.... ...| 0000023c