Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Dashes/Dash_4

!AWMar94/Goodies/Basic/Dashes/Dash_4

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 » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94
Filename: !AWMar94/Goodies/Basic/Dashes/Dash_4
Read OK:
File size: 01F9 bytes
Load address: 0000
Exec address: 0000
File contents
    1
    2
    3LIBRARY "PathLib:OS_units.Paths"
    4LIBRARY "PathLib:OS_units.Styles"
    5
    6
    7
    8REM Create a horizontal line
    9    line%=FNPath_CreateHorizontalLine(0,0,1000)
   10
   11
   12REM Draw a "Guide" line
   13    MODE MODE
   14    PRINT "Dot dash pattern"    
   15    GCOL 1 : LINE 0,600,1000,600 :GCOL 7
   16
   17    FOR n%=1 TO 5
   18     REM Create dash pattern
   19     dash%=FNPath_DotDashPattern(10*n%)
   20     ORIGIN 0,500-n%*40     
   21     SYS "Draw_Stroke",line%,,,,,,dash%
   22     VDU 5 : MOVE 1010,8 : PRINT ;"length = ";n%*40
   23    NEXT
   24 
   25END


ț "PathLib:OS_units.Paths"
 ț "PathLib:OS_units.Styles"



� Create a horizontal line
	2    line%=�Path_CreateHorizontalLine(0,0,1000)



� Draw a "Guide" line

    � �
     � "Dot dash pattern"    
#    � 1 : � 0,600,1000,600 :� 7

    � n%=1 � 5
     � Create dash pattern
*     dash%=�Path_DotDashPattern(10*n%)
     ȑ 0,500-n%*40     
*     ș "Draw_Stroke",line%,,,,,,dash%
.     � 5 : � 1010,8 : � ;"length = ";n%*40
	    �
 
�
�
00000000  0d 00 01 04 0d 00 02 04  0d 00 03 1f c8 9b 20 22  |.............. "|
00000010  50 61 74 68 4c 69 62 3a  4f 53 5f 75 6e 69 74 73  |PathLib:OS_units|
00000020  2e 50 61 74 68 73 22 0d  00 04 20 c8 9b 20 22 50  |.Paths"... .. "P|
00000030  61 74 68 4c 69 62 3a 4f  53 5f 75 6e 69 74 73 2e  |athLib:OS_units.|
00000040  53 74 79 6c 65 73 22 0d  00 05 04 0d 00 06 04 0d  |Styles".........|
00000050  00 07 04 0d 00 08 1e f4  20 43 72 65 61 74 65 20  |........ Create |
00000060  61 20 68 6f 72 69 7a 6f  6e 74 61 6c 20 6c 69 6e  |a horizontal lin|
00000070  65 0d 00 09 32 20 20 20  20 6c 69 6e 65 25 3d a4  |e...2    line%=.|
00000080  50 61 74 68 5f 43 72 65  61 74 65 48 6f 72 69 7a  |Path_CreateHoriz|
00000090  6f 6e 74 61 6c 4c 69 6e  65 28 30 2c 30 2c 31 30  |ontalLine(0,0,10|
000000a0  30 30 29 0d 00 0a 04 0d  00 0b 04 0d 00 0c 19 f4  |00).............|
000000b0  20 44 72 61 77 20 61 20  22 47 75 69 64 65 22 20  | Draw a "Guide" |
000000c0  6c 69 6e 65 0d 00 0d 0b  20 20 20 20 eb 20 eb 0d  |line....    . ..|
000000d0  00 0e 20 20 20 20 20 f1  20 22 44 6f 74 20 64 61  |..     . "Dot da|
000000e0  73 68 20 70 61 74 74 65  72 6e 22 20 20 20 20 0d  |sh pattern"    .|
000000f0  00 0f 23 20 20 20 20 e6  20 31 20 3a 20 86 20 30  |..#    . 1 : . 0|
00000100  2c 36 30 30 2c 31 30 30  30 2c 36 30 30 20 3a e6  |,600,1000,600 :.|
00000110  20 37 0d 00 10 04 0d 00  11 12 20 20 20 20 e3 20  | 7........    . |
00000120  6e 25 3d 31 20 b8 20 35  0d 00 12 1e 20 20 20 20  |n%=1 . 5....    |
00000130  20 f4 20 43 72 65 61 74  65 20 64 61 73 68 20 70  | . Create dash p|
00000140  61 74 74 65 72 6e 0d 00  13 2a 20 20 20 20 20 64  |attern...*     d|
00000150  61 73 68 25 3d a4 50 61  74 68 5f 44 6f 74 44 61  |ash%=.Path_DotDa|
00000160  73 68 50 61 74 74 65 72  6e 28 31 30 2a 6e 25 29  |shPattern(10*n%)|
00000170  0d 00 14 1c 20 20 20 20  20 c8 91 20 30 2c 35 30  |....     .. 0,50|
00000180  30 2d 6e 25 2a 34 30 20  20 20 20 20 0d 00 15 2a  |0-n%*40     ...*|
00000190  20 20 20 20 20 c8 99 20  22 44 72 61 77 5f 53 74  |     .. "Draw_St|
000001a0  72 6f 6b 65 22 2c 6c 69  6e 65 25 2c 2c 2c 2c 2c  |roke",line%,,,,,|
000001b0  2c 64 61 73 68 25 0d 00  16 2e 20 20 20 20 20 ef  |,dash%....     .|
000001c0  20 35 20 3a 20 ec 20 31  30 31 30 2c 38 20 3a 20  | 5 : . 1010,8 : |
000001d0  f1 20 3b 22 6c 65 6e 67  74 68 20 3d 20 22 3b 6e  |. ;"length = ";n|
000001e0  25 2a 34 30 0d 00 17 09  20 20 20 20 ed 0d 00 18  |%*40....    ....|
000001f0  05 20 0d 00 19 05 e0 0d  ff                       |. .......|
000001f9