Home » Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_5_13b

!AWFeb95/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_5_13b

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-1995-02-Disc1.adf » Disk1Feb95
Filename: !AWFeb95/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_5_13b
Read OK:
File size: 00CE bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 3 duplicate copies of this file in the archive:

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  
  f=�Line(1,y,10,y)
  �Dash@(f,pattern)
  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 20  20 0a 20 20 66 3d bb 4c  |ENDCASE  .  f=.L|
000000a0  69 6e 65 28 31 2c 79 2c  31 30 2c 79 29 0a 20 20  |ine(1,y,10,y).  |
000000b0  a0 44 61 73 68 40 28 66  2c 70 61 74 74 65 72 6e  |.Dash@(f,pattern|
000000c0  29 0a 20 20 4e 45 58 54  0a a0 51 75 69 74        |).  NEXT..Quit|
000000ce