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

!AWMar94/Goodies/Basic/ThickLines/Random

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/ThickLines/Random
Read OK:
File size: 0283 bytes
Load address: 0000
Exec address: 0000
File contents
    1
    2
    3LIBRARY "PathLib:OS_units.Paths"
    4LIBRARY "PathLib:OS_units.Styles"
    5
    6MODE MODE
    7
    8 sign%=FNCreate_NoEntrySign(0,0,200)
    9style%=FNPath_CreateLineStyle(2)
   10REPEAT
   11 PROCPath_LineThickness(RND(64))
   12 ORIGIN RND(1280),RND(1024)
   13 PROCPath_SmoothDrawWithStyle(sign%,RND(7),style%,0)
   14 UNTIL FALSE 
   15END
   16
   17DEF FNCreate_NoEntrySign(x%,y%,radius%)
   18 LOCAL NoEntry%
   19 PROCPath_ObjectBegin(NoEntry%,200)
   20  REM First create sub-path circle
   21      PROCPath_Circle(x%,y%,radius%)
   22  REM Then create sub-path line  
   23      PROCPath_Move(x%-radius%/SQR2,y%-radius%/SQR2)
   24      PROCPath_Draw(x%+radius%/SQR2,y%+radius%/SQR2)       
   25 PROCPath_ObjectEnd
   26=NoEntry%
   27
   28
   29
   30


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

� �

' sign%=�Create_NoEntrySign(0,0,200)
	#style%=�Path_CreateLineStyle(2)

�
 �Path_LineThickness(�(64))
 ȑ �(1280),�(1024)

3 �Path_SmoothDrawWithStyle(sign%,�(7),style%,0)
	 � � 
�

(� �Create_NoEntrySign(x%,y%,radius%)
 � NoEntry%
$ �Path_ObjectBegin(NoEntry%,200)
$  � First create sub-path circle
%      �Path_Circle(x%,y%,radius%)
#  � Then create sub-path line  
1      �Path_Move(x%-radius%/�2,y%-radius%/�2)
8      �Path_Draw(x%+radius%/�2,y%+radius%/�2)       
 �Path_ObjectEnd

=NoEntry%




�
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 04 0d 00  08 27 20 73 69 67 6e 25  | ........' sign%|
00000060  3d a4 43 72 65 61 74 65  5f 4e 6f 45 6e 74 72 79  |=.Create_NoEntry|
00000070  53 69 67 6e 28 30 2c 30  2c 32 30 30 29 0d 00 09  |Sign(0,0,200)...|
00000080  23 73 74 79 6c 65 25 3d  a4 50 61 74 68 5f 43 72  |#style%=.Path_Cr|
00000090  65 61 74 65 4c 69 6e 65  53 74 79 6c 65 28 32 29  |eateLineStyle(2)|
000000a0  0d 00 0a 05 f5 0d 00 0b  1f 20 f2 50 61 74 68 5f  |......... .Path_|
000000b0  4c 69 6e 65 54 68 69 63  6b 6e 65 73 73 28 b3 28  |LineThickness(.(|
000000c0  36 34 29 29 0d 00 0c 17  20 c8 91 20 b3 28 31 32  |64)).... .. .(12|
000000d0  38 30 29 2c b3 28 31 30  32 34 29 0d 00 0d 33 20  |80),.(1024)...3 |
000000e0  f2 50 61 74 68 5f 53 6d  6f 6f 74 68 44 72 61 77  |.Path_SmoothDraw|
000000f0  57 69 74 68 53 74 79 6c  65 28 73 69 67 6e 25 2c  |WithStyle(sign%,|
00000100  b3 28 37 29 2c 73 74 79  6c 65 25 2c 30 29 0d 00  |.(7),style%,0)..|
00000110  0e 09 20 fd 20 a3 20 0d  00 0f 05 e0 0d 00 10 04  |.. . . .........|
00000120  0d 00 11 28 dd 20 a4 43  72 65 61 74 65 5f 4e 6f  |...(. .Create_No|
00000130  45 6e 74 72 79 53 69 67  6e 28 78 25 2c 79 25 2c  |EntrySign(x%,y%,|
00000140  72 61 64 69 75 73 25 29  0d 00 12 0f 20 ea 20 4e  |radius%).... . N|
00000150  6f 45 6e 74 72 79 25 0d  00 13 24 20 f2 50 61 74  |oEntry%...$ .Pat|
00000160  68 5f 4f 62 6a 65 63 74  42 65 67 69 6e 28 4e 6f  |h_ObjectBegin(No|
00000170  45 6e 74 72 79 25 2c 32  30 30 29 0d 00 14 24 20  |Entry%,200)...$ |
00000180  20 f4 20 46 69 72 73 74  20 63 72 65 61 74 65 20  | . First create |
00000190  73 75 62 2d 70 61 74 68  20 63 69 72 63 6c 65 0d  |sub-path circle.|
000001a0  00 15 25 20 20 20 20 20  20 f2 50 61 74 68 5f 43  |..%      .Path_C|
000001b0  69 72 63 6c 65 28 78 25  2c 79 25 2c 72 61 64 69  |ircle(x%,y%,radi|
000001c0  75 73 25 29 0d 00 16 23  20 20 f4 20 54 68 65 6e  |us%)...#  . Then|
000001d0  20 63 72 65 61 74 65 20  73 75 62 2d 70 61 74 68  | create sub-path|
000001e0  20 6c 69 6e 65 20 20 0d  00 17 31 20 20 20 20 20  | line  ...1     |
000001f0  20 f2 50 61 74 68 5f 4d  6f 76 65 28 78 25 2d 72  | .Path_Move(x%-r|
00000200  61 64 69 75 73 25 2f b6  32 2c 79 25 2d 72 61 64  |adius%/.2,y%-rad|
00000210  69 75 73 25 2f b6 32 29  0d 00 18 38 20 20 20 20  |ius%/.2)...8    |
00000220  20 20 f2 50 61 74 68 5f  44 72 61 77 28 78 25 2b  |  .Path_Draw(x%+|
00000230  72 61 64 69 75 73 25 2f  b6 32 2c 79 25 2b 72 61  |radius%/.2,y%+ra|
00000240  64 69 75 73 25 2f b6 32  29 20 20 20 20 20 20 20  |dius%/.2)       |
00000250  0d 00 19 14 20 f2 50 61  74 68 5f 4f 62 6a 65 63  |.... .Path_Objec|
00000260  74 45 6e 64 0d 00 1a 0d  3d 4e 6f 45 6e 74 72 79  |tEnd....=NoEntry|
00000270  25 0d 00 1b 04 0d 00 1c  04 0d 00 1d 04 0d 00 1e  |%...............|
00000280  04 0d ff                                          |...|
00000283