Home » Archimedes archive » Archimedes World » AW-1994-12-Disc1.adf » Disk1Dec94 » !AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_5_13

!AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_5_13

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-12-Disc1.adf » Disk1Dec94
Filename: !AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_5_13
Read OK:
File size: 00C7 bytes
Load address: 0000
Exec address: 0000
File contents
�Width(10)
FOR y=1 TO 3
  CASE y OF
   WHEN 3 : pattern=�EquiDash(10)
   WHEN 2 : pattern=�DotDash(10)
   WHEN 1 : pattern=�NonEquiDash(10,3)
  ENDCASE
  �Dash(pattern)
  �Line(1,y,10,y)
  NEXT
�Quit
00000000  a0 57 69 64 74 68 28 31  30 29 0a 46 4f 52 20 79  |.Width(10).FOR y|
00000010  3d 31 20 54 4f 20 33 0a  20 20 43 41 53 45 20 79  |=1 TO 3.  CASE y|
00000020  20 4f 46 0a 20 20 20 57  48 45 4e 20 33 20 3a 20  | OF.   WHEN 3 : |
00000030  70 61 74 74 65 72 6e 3d  bb 45 71 75 69 44 61 73  |pattern=.EquiDas|
00000040  68 28 31 30 29 0a 20 20  20 57 48 45 4e 20 32 20  |h(10).   WHEN 2 |
00000050  3a 20 70 61 74 74 65 72  6e 3d bb 44 6f 74 44 61  |: pattern=.DotDa|
00000060  73 68 28 31 30 29 0a 20  20 20 57 48 45 4e 20 31  |sh(10).   WHEN 1|
00000070  20 3a 20 70 61 74 74 65  72 6e 3d bb 4e 6f 6e 45  | : pattern=.NonE|
00000080  71 75 69 44 61 73 68 28  31 30 2c 33 29 0a 20 20  |quiDash(10,3).  |
00000090  45 4e 44 43 41 53 45 0a  20 20 a0 44 61 73 68 28  |ENDCASE.  .Dash(|
000000a0  70 61 74 74 65 72 6e 29  0a 20 20 a0 4c 69 6e 65  |pattern).  .Line|
000000b0  28 31 2c 79 2c 31 30 2c  79 29 0a 20 20 4e 45 58  |(1,y,10,y).  NEX|
000000c0  54 0a a0 51 75 69 74                              |T..Quit|
000000c7