Home » Archimedes archive » Archimedes World » AW-1994-12-Disc1.adf » Disk1Dec94 » !AWDec94/Goodies/DrawBasic/!DrawBasic/Info/Commands/Paths

!AWDec94/Goodies/DrawBasic/!DrawBasic/Info/Commands/Paths

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/Info/Commands/Paths
Read OK:
File size: 0398 bytes
Load address: 0000
Exec address: 0000
File contents
Resources.Paths :
===============

 Paths are discussed in Chapter 3 of the DrawBasic book. Pages 23-32
  
----------------------------------------------------------------------------- 
  � PATHS  
  --------
           
 �PathBegin(RETURN path)          (page 24)
 �PathEnd
            
                    �CurrentPath(path%)      �CurrentPath        
                    �CurrentSubpath(path%)   �CurrentSubpath
                    �Draw_PathHeader         
                    �DrawTrans         
----------------------------------------------------------------------------- 
  � FUNDAMENTAL DRAWING COMMANDS  (Pages 23-26)
  -------------------------------
          
 �Move(x,y)
 �Draw(x,y)
 �Bezier(a,b,c,d,x,y)                     pages 27-30
 �CloseWithLine
 
 �MovePolar(r,theta)                      pages 30-32       
 �DrawPolar(r,theta)         
    �Argument(y,x)                
    �Modulus(x,y)      
 
00000000  52 65 73 6f 75 72 63 65  73 2e 50 61 74 68 73 20  |Resources.Paths |
00000010  3a 0a 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |:.==============|
00000020  3d 0a 0a 20 50 61 74 68  73 20 61 72 65 20 64 69  |=.. Paths are di|
00000030  73 63 75 73 73 65 64 20  69 6e 20 43 68 61 70 74  |scussed in Chapt|
00000040  65 72 20 33 20 6f 66 20  74 68 65 20 44 72 61 77  |er 3 of the Draw|
00000050  42 61 73 69 63 20 62 6f  6f 6b 2e 20 50 61 67 65  |Basic book. Page|
00000060  73 20 32 33 2d 33 32 0a  20 20 0a 2d 2d 2d 2d 2d  |s 23-32.  .-----|
00000070  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000000b0  2d 2d 2d 2d 2d 2d 2d 2d  20 0a 20 20 8f 20 50 41  |-------- .  . PA|
000000c0  54 48 53 20 20 0a 20 20  2d 2d 2d 2d 2d 2d 2d 2d  |THS  .  --------|
000000d0  0a 20 20 20 20 20 20 20  20 20 20 20 0a 20 b7 50  |.           . .P|
000000e0  61 74 68 42 65 67 69 6e  28 52 45 54 55 52 4e 20  |athBegin(RETURN |
000000f0  70 61 74 68 29 20 20 20  20 20 20 20 20 20 20 28  |path)          (|
00000100  70 61 67 65 20 32 34 29  0a 20 b7 50 61 74 68 45  |page 24). .PathE|
00000110  6e 64 0a 20 20 20 20 20  20 20 20 20 20 20 20 0a  |nd.            .|
00000120  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000130  20 20 20 20 b7 43 75 72  72 65 6e 74 50 61 74 68  |    .CurrentPath|
00000140  28 70 61 74 68 25 29 20  20 20 20 20 20 bb 43 75  |(path%)      .Cu|
00000150  72 72 65 6e 74 50 61 74  68 20 20 20 20 20 20 20  |rrentPath       |
00000160  20 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  | .              |
00000170  20 20 20 20 20 20 b7 43  75 72 72 65 6e 74 53 75  |      .CurrentSu|
00000180  62 70 61 74 68 28 70 61  74 68 25 29 20 20 20 bb  |bpath(path%)   .|
00000190  43 75 72 72 65 6e 74 53  75 62 70 61 74 68 0a 20  |CurrentSubpath. |
000001a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001b0  20 20 20 b7 44 72 61 77  5f 50 61 74 68 48 65 61  |   .Draw_PathHea|
000001c0  64 65 72 20 20 20 20 20  20 20 20 20 0a 20 20 20  |der         .   |
000001d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001e0  20 bb 44 72 61 77 54 72  61 6e 73 20 20 20 20 20  | .DrawTrans     |
000001f0  20 20 20 20 0a 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |    .-----------|
00000200  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000240  2d 2d 20 0a 20 20 8f 20  46 55 4e 44 41 4d 45 4e  |-- .  . FUNDAMEN|
00000250  54 41 4c 20 44 52 41 57  49 4e 47 20 43 4f 4d 4d  |TAL DRAWING COMM|
00000260  41 4e 44 53 20 20 28 50  61 67 65 73 20 32 33 2d  |ANDS  (Pages 23-|
00000270  32 36 29 0a 20 20 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |26).  ----------|
00000280  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000290  2d 2d 2d 2d 2d 0a 20 20  20 20 20 20 20 20 20 20  |-----.          |
000002a0  0a 20 b7 4d 6f 76 65 28  78 2c 79 29 0a 20 b7 44  |. .Move(x,y). .D|
000002b0  72 61 77 28 78 2c 79 29  0a 20 b7 42 65 7a 69 65  |raw(x,y). .Bezie|
000002c0  72 28 61 2c 62 2c 63 2c  64 2c 78 2c 79 29 20 20  |r(a,b,c,d,x,y)  |
000002d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000002e0  20 20 20 70 61 67 65 73  20 32 37 2d 33 30 0a 20  |   pages 27-30. |
000002f0  b7 43 6c 6f 73 65 57 69  74 68 4c 69 6e 65 0a 20  |.CloseWithLine. |
00000300  0a 20 b7 4d 6f 76 65 50  6f 6c 61 72 28 72 2c 74  |. .MovePolar(r,t|
00000310  68 65 74 61 29 20 20 20  20 20 20 20 20 20 20 20  |heta)           |
00000320  20 20 20 20 20 20 20 20  20 20 20 70 61 67 65 73  |           pages|
00000330  20 33 30 2d 33 32 20 20  20 20 20 20 20 0a 20 b7  | 30-32       . .|
00000340  44 72 61 77 50 6f 6c 61  72 28 72 2c 74 68 65 74  |DrawPolar(r,thet|
00000350  61 29 20 20 20 20 20 20  20 20 20 0a 20 20 20 20  |a)         .    |
00000360  bb 41 72 67 75 6d 65 6e  74 28 79 2c 78 29 20 20  |.Argument(y,x)  |
00000370  20 20 20 20 20 20 20 20  20 20 20 20 20 20 0a 20  |              . |
00000380  20 20 20 bb 4d 6f 64 75  6c 75 73 28 78 2c 79 29  |   .Modulus(x,y)|
00000390  20 20 20 20 20 20 0a 20                           |      . |
00000398