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

!AWMar94/Goodies/Basic/Dashes/Dash_3

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_3
Read OK:
File size: 022F bytes
Load address: 0000
Exec address: 0000
File contents
    1
    2LIBRARY "PathLib:OS_units.Paths"
    3LIBRARY "PathLib:OS_units.Styles"
    4
    5
    6
    7REM Create a horizontal line
    8    line%=FNPath_CreateHorizontalLine(0,0,1000)
    9
   10
   11
   12    
   13
   14REM Draw a "Guide" line
   15    MODE MODE
   16    PRINT "Varying the length of the stroke, but not the gap"   
   17    GCOL 1 : LINE 0,600,1000,600 :GCOL 7
   18
   19    FOR n%=1 TO 5
   20     REM Create dash pattern
   21     dash%=FNPath_DashPattern(50*n%,50)
   22     ORIGIN 0,500-n%*40     
   23     SYS "Draw_Stroke",line%,,,,,,dash%
   24     VDU 5 : MOVE 1010,8 : PRINT ;"Stroke = ";n%;" times gap"
   25    NEXT
   26 
   27END

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



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



    


� Draw a "Guide" line
    � �
@    � "Varying the length of the stroke, but not the gap"   
#    � 1 : � 0,600,1000,600 :� 7

    � n%=1 � 5
     � Create dash pattern
*     dash%=�Path_DashPattern(50*n%,50)
     ȑ 0,500-n%*40     
*     ș "Draw_Stroke",line%,,,,,,dash%
8     � 5 : � 1010,8 : � ;"Stroke = ";n%;" times gap"
	    �
 
�
�
00000000  0d 00 01 04 0d 00 02 1f  c8 9b 20 22 50 61 74 68  |.......... "Path|
00000010  4c 69 62 3a 4f 53 5f 75  6e 69 74 73 2e 50 61 74  |Lib:OS_units.Pat|
00000020  68 73 22 0d 00 03 20 c8  9b 20 22 50 61 74 68 4c  |hs"... .. "PathL|
00000030  69 62 3a 4f 53 5f 75 6e  69 74 73 2e 53 74 79 6c  |ib:OS_units.Styl|
00000040  65 73 22 0d 00 04 04 0d  00 05 04 0d 00 06 04 0d  |es".............|
00000050  00 07 1e f4 20 43 72 65  61 74 65 20 61 20 68 6f  |.... Create a ho|
00000060  72 69 7a 6f 6e 74 61 6c  20 6c 69 6e 65 0d 00 08  |rizontal line...|
00000070  32 20 20 20 20 6c 69 6e  65 25 3d a4 50 61 74 68  |2    line%=.Path|
00000080  5f 43 72 65 61 74 65 48  6f 72 69 7a 6f 6e 74 61  |_CreateHorizonta|
00000090  6c 4c 69 6e 65 28 30 2c  30 2c 31 30 30 30 29 0d  |lLine(0,0,1000).|
000000a0  00 09 04 0d 00 0a 04 0d  00 0b 04 0d 00 0c 08 20  |............... |
000000b0  20 20 20 0d 00 0d 04 0d  00 0e 19 f4 20 44 72 61  |   ......... Dra|
000000c0  77 20 61 20 22 47 75 69  64 65 22 20 6c 69 6e 65  |w a "Guide" line|
000000d0  0d 00 0f 0b 20 20 20 20  eb 20 eb 0d 00 10 40 20  |....    . ....@ |
000000e0  20 20 20 f1 20 22 56 61  72 79 69 6e 67 20 74 68  |   . "Varying th|
000000f0  65 20 6c 65 6e 67 74 68  20 6f 66 20 74 68 65 20  |e length of the |
00000100  73 74 72 6f 6b 65 2c 20  62 75 74 20 6e 6f 74 20  |stroke, but not |
00000110  74 68 65 20 67 61 70 22  20 20 20 0d 00 11 23 20  |the gap"   ...# |
00000120  20 20 20 e6 20 31 20 3a  20 86 20 30 2c 36 30 30  |   . 1 : . 0,600|
00000130  2c 31 30 30 30 2c 36 30  30 20 3a e6 20 37 0d 00  |,1000,600 :. 7..|
00000140  12 04 0d 00 13 12 20 20  20 20 e3 20 6e 25 3d 31  |......    . n%=1|
00000150  20 b8 20 35 0d 00 14 1e  20 20 20 20 20 f4 20 43  | . 5....     . C|
00000160  72 65 61 74 65 20 64 61  73 68 20 70 61 74 74 65  |reate dash patte|
00000170  72 6e 0d 00 15 2a 20 20  20 20 20 64 61 73 68 25  |rn...*     dash%|
00000180  3d a4 50 61 74 68 5f 44  61 73 68 50 61 74 74 65  |=.Path_DashPatte|
00000190  72 6e 28 35 30 2a 6e 25  2c 35 30 29 0d 00 16 1c  |rn(50*n%,50)....|
000001a0  20 20 20 20 20 c8 91 20  30 2c 35 30 30 2d 6e 25  |     .. 0,500-n%|
000001b0  2a 34 30 20 20 20 20 20  0d 00 17 2a 20 20 20 20  |*40     ...*    |
000001c0  20 c8 99 20 22 44 72 61  77 5f 53 74 72 6f 6b 65  | .. "Draw_Stroke|
000001d0  22 2c 6c 69 6e 65 25 2c  2c 2c 2c 2c 2c 64 61 73  |",line%,,,,,,das|
000001e0  68 25 0d 00 18 38 20 20  20 20 20 ef 20 35 20 3a  |h%...8     . 5 :|
000001f0  20 ec 20 31 30 31 30 2c  38 20 3a 20 f1 20 3b 22  | . 1010,8 : . ;"|
00000200  53 74 72 6f 6b 65 20 3d  20 22 3b 6e 25 3b 22 20  |Stroke = ";n%;" |
00000210  74 69 6d 65 73 20 67 61  70 22 0d 00 19 09 20 20  |times gap"....  |
00000220  20 20 ed 0d 00 1a 05 20  0d 00 1b 05 e0 0d ff     |  ..... .......|
0000022f