Home » Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/Style/Example_8

!AWFeb95/Goodies/DrawBasic/Style/Example_8

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/Style/Example_8
Read OK:
File size: 012E bytes
Load address: 0000
Exec address: 0000
File contents
�Inches
 �Width(10)
 FOR x=1 TO 4 STEP 1.5  
   CASE x OF
    WHEN 1   : �RoundJoins
    WHEN 2.5 : �BevelJoins
    WHEN 4   : �MitreJoins 
   ENDCASE
   �LineWithJoinAt(x,1)
   NEXT
�Quit

DEF �LineWithJoinAt(x,y)
LOCAL path
�PathBegin(path)
 �@Line(x-.5,y+1.5,x,y)
 �Draw(x+.5,y+1.5)
�PathEnd
ENDPROC
00000000  a0 49 6e 63 68 65 73 0a  20 a0 57 69 64 74 68 28  |.Inches. .Width(|
00000010  31 30 29 0a 20 46 4f 52  20 78 3d 31 20 54 4f 20  |10). FOR x=1 TO |
00000020  34 20 53 54 45 50 20 31  2e 35 20 20 0a 20 20 20  |4 STEP 1.5  .   |
00000030  43 41 53 45 20 78 20 4f  46 0a 20 20 20 20 57 48  |CASE x OF.    WH|
00000040  45 4e 20 31 20 20 20 3a  20 a0 52 6f 75 6e 64 4a  |EN 1   : .RoundJ|
00000050  6f 69 6e 73 0a 20 20 20  20 57 48 45 4e 20 32 2e  |oins.    WHEN 2.|
00000060  35 20 3a 20 a0 42 65 76  65 6c 4a 6f 69 6e 73 0a  |5 : .BevelJoins.|
00000070  20 20 20 20 57 48 45 4e  20 34 20 20 20 3a 20 a0  |    WHEN 4   : .|
00000080  4d 69 74 72 65 4a 6f 69  6e 73 20 0a 20 20 20 45  |MitreJoins .   E|
00000090  4e 44 43 41 53 45 0a 20  20 20 a0 4c 69 6e 65 57  |NDCASE.   .LineW|
000000a0  69 74 68 4a 6f 69 6e 41  74 28 78 2c 31 29 0a 20  |ithJoinAt(x,1). |
000000b0  20 20 4e 45 58 54 0a a0  51 75 69 74 0a 0a 44 45  |  NEXT..Quit..DE|
000000c0  46 20 a0 4c 69 6e 65 57  69 74 68 4a 6f 69 6e 41  |F .LineWithJoinA|
000000d0  74 28 78 2c 79 29 0a 4c  4f 43 41 4c 20 70 61 74  |t(x,y).LOCAL pat|
000000e0  68 0a a0 50 61 74 68 42  65 67 69 6e 28 70 61 74  |h..PathBegin(pat|
000000f0  68 29 0a 20 a0 40 4c 69  6e 65 28 78 2d 2e 35 2c  |h). .@Line(x-.5,|
00000100  79 2b 31 2e 35 2c 78 2c  79 29 0a 20 a0 44 72 61  |y+1.5,x,y). .Dra|
00000110  77 28 78 2b 2e 35 2c 79  2b 31 2e 35 29 0a a0 50  |w(x+.5,y+1.5)..P|
00000120  61 74 68 45 6e 64 0a 45  4e 44 50 52 4f 43        |athEnd.ENDPROC|
0000012e