Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Cap+Join/CapStyles

!AWMar94/Goodies/Basic/Cap+Join/CapStyles

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/Cap+Join/CapStyles
Read OK:
File size: 02C2 bytes
Load address: 0000
Exec address: 0000
File contents
    1
    2
    3LIBRARY "PathLib:OS_units.Paths"
    4LIBRARY "PathLib:OS_units.Styles"
    5
    6MODE MODE
    7PRINT "The various  leading cap styles are:"
    8
    9REM Create a horizontal line
   10   length%=1000 
   11     line%=FNPath_CreateHorizontalLine(0,0,length%)
   12    style%=FNPath_CreateLineStyle(32)
   13    
   14VDU 5
   15  REM "Butt"
   16  ORIGIN 0,800:PROCPath_LineDrawWithStyle(line%,1,style%,0)
   17    
   18  REM "Round"
   19  PROCPath_RoundLeadingCaps
   20  ORIGIN 0,700:PROCPath_LineDrawWithStyle(line%,2,style%,0)
   21  
   22  REM "Square"
   23  PROCPath_SquareLeadingCaps
   24  ORIGIN 0,600:PROCPath_LineDrawWithStyle(line%,3,style%,0)
   25
   26  REM "Triangular"
   27  PROCPath_TriangularLeadingCaps(1,1)
   28  ORIGIN 0,500:PROCPath_LineDrawWithStyle(line%,4,style%,0)
   29
   30END
   31


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

� �
,� "The various  leading cap styles are:"

	� Create a horizontal line

   length%=1000 
6     line%=�Path_CreateHorizontalLine(0,0,length%)
(    style%=�Path_CreateLineStyle(32)

    
� 5
  � "Butt"
8  ȑ 0,800:�Path_LineDrawWithStyle(line%,1,style%,0)
    
  � "Round"
  �Path_RoundLeadingCaps
8  ȑ 0,700:�Path_LineDrawWithStyle(line%,2,style%,0)
  
  � "Square"
  �Path_SquareLeadingCaps
8  ȑ 0,600:�Path_LineDrawWithStyle(line%,3,style%,0)

  � "Triangular"
&  �Path_TriangularLeadingCaps(1,1)
8  ȑ 0,500:�Path_LineDrawWithStyle(line%,4,style%,0)

�

�
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 07 eb  |Styles".........|
00000050  20 eb 0d 00 07 2c f1 20  22 54 68 65 20 76 61 72  | ....,. "The var|
00000060  69 6f 75 73 20 20 6c 65  61 64 69 6e 67 20 63 61  |ious  leading ca|
00000070  70 20 73 74 79 6c 65 73  20 61 72 65 3a 22 0d 00  |p styles are:"..|
00000080  08 04 0d 00 09 1e f4 20  43 72 65 61 74 65 20 61  |....... Create a|
00000090  20 68 6f 72 69 7a 6f 6e  74 61 6c 20 6c 69 6e 65  | horizontal line|
000000a0  0d 00 0a 14 20 20 20 6c  65 6e 67 74 68 25 3d 31  |....   length%=1|
000000b0  30 30 30 20 0d 00 0b 36  20 20 20 20 20 6c 69 6e  |000 ...6     lin|
000000c0  65 25 3d a4 50 61 74 68  5f 43 72 65 61 74 65 48  |e%=.Path_CreateH|
000000d0  6f 72 69 7a 6f 6e 74 61  6c 4c 69 6e 65 28 30 2c  |orizontalLine(0,|
000000e0  30 2c 6c 65 6e 67 74 68  25 29 0d 00 0c 28 20 20  |0,length%)...(  |
000000f0  20 20 73 74 79 6c 65 25  3d a4 50 61 74 68 5f 43  |  style%=.Path_C|
00000100  72 65 61 74 65 4c 69 6e  65 53 74 79 6c 65 28 33  |reateLineStyle(3|
00000110  32 29 0d 00 0d 08 20 20  20 20 0d 00 0e 07 ef 20  |2)....    ..... |
00000120  35 0d 00 0f 0e 20 20 f4  20 22 42 75 74 74 22 0d  |5....  . "Butt".|
00000130  00 10 38 20 20 c8 91 20  30 2c 38 30 30 3a f2 50  |..8  .. 0,800:.P|
00000140  61 74 68 5f 4c 69 6e 65  44 72 61 77 57 69 74 68  |ath_LineDrawWith|
00000150  53 74 79 6c 65 28 6c 69  6e 65 25 2c 31 2c 73 74  |Style(line%,1,st|
00000160  79 6c 65 25 2c 30 29 0d  00 11 08 20 20 20 20 0d  |yle%,0)....    .|
00000170  00 12 0f 20 20 f4 20 22  52 6f 75 6e 64 22 0d 00  |...  . "Round"..|
00000180  13 1c 20 20 f2 50 61 74  68 5f 52 6f 75 6e 64 4c  |..  .Path_RoundL|
00000190  65 61 64 69 6e 67 43 61  70 73 0d 00 14 38 20 20  |eadingCaps...8  |
000001a0  c8 91 20 30 2c 37 30 30  3a f2 50 61 74 68 5f 4c  |.. 0,700:.Path_L|
000001b0  69 6e 65 44 72 61 77 57  69 74 68 53 74 79 6c 65  |ineDrawWithStyle|
000001c0  28 6c 69 6e 65 25 2c 32  2c 73 74 79 6c 65 25 2c  |(line%,2,style%,|
000001d0  30 29 0d 00 15 06 20 20  0d 00 16 10 20 20 f4 20  |0)....  ....  . |
000001e0  22 53 71 75 61 72 65 22  0d 00 17 1d 20 20 f2 50  |"Square"....  .P|
000001f0  61 74 68 5f 53 71 75 61  72 65 4c 65 61 64 69 6e  |ath_SquareLeadin|
00000200  67 43 61 70 73 0d 00 18  38 20 20 c8 91 20 30 2c  |gCaps...8  .. 0,|
00000210  36 30 30 3a f2 50 61 74  68 5f 4c 69 6e 65 44 72  |600:.Path_LineDr|
00000220  61 77 57 69 74 68 53 74  79 6c 65 28 6c 69 6e 65  |awWithStyle(line|
00000230  25 2c 33 2c 73 74 79 6c  65 25 2c 30 29 0d 00 19  |%,3,style%,0)...|
00000240  04 0d 00 1a 14 20 20 f4  20 22 54 72 69 61 6e 67  |.....  . "Triang|
00000250  75 6c 61 72 22 0d 00 1b  26 20 20 f2 50 61 74 68  |ular"...&  .Path|
00000260  5f 54 72 69 61 6e 67 75  6c 61 72 4c 65 61 64 69  |_TriangularLeadi|
00000270  6e 67 43 61 70 73 28 31  2c 31 29 0d 00 1c 38 20  |ngCaps(1,1)...8 |
00000280  20 c8 91 20 30 2c 35 30  30 3a f2 50 61 74 68 5f  | .. 0,500:.Path_|
00000290  4c 69 6e 65 44 72 61 77  57 69 74 68 53 74 79 6c  |LineDrawWithStyl|
000002a0  65 28 6c 69 6e 65 25 2c  34 2c 73 74 79 6c 65 25  |e(line%,4,style%|
000002b0  2c 30 29 0d 00 1d 04 0d  00 1e 05 e0 0d 00 1f 04  |,0).............|
000002c0  0d ff                                             |..|
000002c2