Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Fill/NonZero
!AWMar94/Goodies/Basic/Fill/NonZero
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/Fill/NonZero |
Read OK: | ✔ |
File size: | 0369 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
1 2LIBRARY "PathLib:OS_units.Paths" 3LIBRARY "PathLib:OS_units.Styles" 4 5MODE MODE : PRINT "Non-zero fill" 6 width%=800 7 object%=FNCreate_Object(0,0,width%) 8 style%=FNPath_CreateLineStyle(8) 9 dash%=FNPath_EquidistantDashPattern(32) 10 PROCPath_TriangularLeadingCaps(2,2) 11 12 ORIGIN 640,512 13 14 GCOL 1 15 SYS "Draw_Fill",object% 16 17 PROCPath_SmoothDrawWithStyle(object%,2,style%,dash%) 18 19 20END 21 22DEF FNCreate_Object(x%,y%,width%) 23 LOCAL object% 24 PROCPath_ObjectBegin(object%,200) 25 REM First create sub-path square 26 PROCPath_Square(x%,y%,width%) 27 REM Then create sub-path line 28 h%=width%DIV4 29 a%=x%-h% : b%=y%-h% 30 PROCPath_Move(a%,b%) 31 PROCPath_Cubic(a%+2*h%,b%,a%,b%+2*h%,a%+2*h%,b%+2*h%) 32 PROCPath_Cubic(a%+2*h%,b%,a%,b%+2*h%,a%,b%) 33 PROCPath_CloseWithLine 34 PROCPath_ObjectEnd 35=object% 36 37 38 39
ț "PathLib:OS_units.Paths" ț "PathLib:OS_units.Styles" � � : � "Non-zero fill" width%=800 ' object%=�Create_Object(0,0,width%) % style%=�Path_CreateLineStyle(8) - dash%=�Path_EquidistantDashPattern(32) ' �Path_TriangularLeadingCaps(2,2) ȑ 640,512 � 1 ș "Draw_Fill",object% 6 �Path_SmoothDrawWithStyle(object%,2,style%,dash%) � "� �Create_Object(x%,y%,width%) � object% # �Path_ObjectBegin(object%,200) $ � First create sub-path square $ �Path_Square(x%,y%,width%) ! � Then create sub-path line h%=width%�4 a%=x%-h% : b%=y%-h% �Path_Move(a%,b%) < �Path_Cubic(a%+2*h%,b%,a%,b%+2*h%,a%+2*h%,b%+2*h%) 2 �Path_Cubic(a%+2*h%,b%,a%,b%+2*h%,a%,b%) !# �Path_CloseWithLine " �Path_ObjectEnd #=object% $ % & ' �
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 1b eb 20 eb 20 3a |es"......... . :| 00000050 20 f1 20 22 4e 6f 6e 2d 7a 65 72 6f 20 66 69 6c | . "Non-zero fil| 00000060 6c 22 0d 00 06 0f 20 77 69 64 74 68 25 3d 38 30 |l".... width%=80| 00000070 30 0d 00 07 27 20 6f 62 6a 65 63 74 25 3d a4 43 |0...' object%=.C| 00000080 72 65 61 74 65 5f 4f 62 6a 65 63 74 28 30 2c 30 |reate_Object(0,0| 00000090 2c 77 69 64 74 68 25 29 0d 00 08 25 20 20 73 74 |,width%)...% st| 000000a0 79 6c 65 25 3d a4 50 61 74 68 5f 43 72 65 61 74 |yle%=.Path_Creat| 000000b0 65 4c 69 6e 65 53 74 79 6c 65 28 38 29 0d 00 09 |eLineStyle(8)...| 000000c0 2d 20 20 20 64 61 73 68 25 3d a4 50 61 74 68 5f |- dash%=.Path_| 000000d0 45 71 75 69 64 69 73 74 61 6e 74 44 61 73 68 50 |EquidistantDashP| 000000e0 61 74 74 65 72 6e 28 33 32 29 0d 00 0a 27 20 20 |attern(32)...' | 000000f0 20 f2 50 61 74 68 5f 54 72 69 61 6e 67 75 6c 61 | .Path_Triangula| 00000100 72 4c 65 61 64 69 6e 67 43 61 70 73 28 32 2c 32 |rLeadingCaps(2,2| 00000110 29 0d 00 0b 07 20 20 20 0d 00 0c 0f 20 c8 91 20 |).... .... .. | 00000120 36 34 30 2c 35 31 32 0d 00 0d 04 0d 00 0e 08 20 |640,512........ | 00000130 e6 20 31 0d 00 0f 1b 20 c8 99 20 22 44 72 61 77 |. 1.... .. "Draw| 00000140 5f 46 69 6c 6c 22 2c 6f 62 6a 65 63 74 25 0d 00 |_Fill",object%..| 00000150 10 05 20 0d 00 11 36 20 f2 50 61 74 68 5f 53 6d |.. ...6 .Path_Sm| 00000160 6f 6f 74 68 44 72 61 77 57 69 74 68 53 74 79 6c |oothDrawWithStyl| 00000170 65 28 6f 62 6a 65 63 74 25 2c 32 2c 73 74 79 6c |e(object%,2,styl| 00000180 65 25 2c 64 61 73 68 25 29 0d 00 12 04 0d 00 13 |e%,dash%).......| 00000190 05 20 0d 00 14 05 e0 0d 00 15 04 0d 00 16 22 dd |. ............".| 000001a0 20 a4 43 72 65 61 74 65 5f 4f 62 6a 65 63 74 28 | .Create_Object(| 000001b0 78 25 2c 79 25 2c 77 69 64 74 68 25 29 0d 00 17 |x%,y%,width%)...| 000001c0 0e 20 ea 20 6f 62 6a 65 63 74 25 0d 00 18 23 20 |. . object%...# | 000001d0 f2 50 61 74 68 5f 4f 62 6a 65 63 74 42 65 67 69 |.Path_ObjectBegi| 000001e0 6e 28 6f 62 6a 65 63 74 25 2c 32 30 30 29 0d 00 |n(object%,200)..| 000001f0 19 24 20 20 f4 20 46 69 72 73 74 20 63 72 65 61 |.$ . First crea| 00000200 74 65 20 73 75 62 2d 70 61 74 68 20 73 71 75 61 |te sub-path squa| 00000210 72 65 0d 00 1a 24 20 20 20 20 20 20 f2 50 61 74 |re...$ .Pat| 00000220 68 5f 53 71 75 61 72 65 28 78 25 2c 79 25 2c 77 |h_Square(x%,y%,w| 00000230 69 64 74 68 25 29 0d 00 1b 21 20 20 f4 20 54 68 |idth%)...! . Th| 00000240 65 6e 20 63 72 65 61 74 65 20 73 75 62 2d 70 61 |en create sub-pa| 00000250 74 68 20 6c 69 6e 65 0d 00 1c 15 20 20 20 20 20 |th line.... | 00000260 20 68 25 3d 77 69 64 74 68 25 81 34 0d 00 1d 1e | h%=width%.4....| 00000270 20 20 20 20 20 20 61 25 3d 78 25 2d 68 25 20 3a | a%=x%-h% :| 00000280 20 62 25 3d 79 25 2d 68 25 20 0d 00 1e 1c 20 20 | b%=y%-h% .... | 00000290 20 20 20 20 f2 50 61 74 68 5f 4d 6f 76 65 28 61 | .Path_Move(a| 000002a0 25 2c 62 25 29 20 0d 00 1f 3c 20 20 20 20 20 20 |%,b%) ...< | 000002b0 f2 50 61 74 68 5f 43 75 62 69 63 28 61 25 2b 32 |.Path_Cubic(a%+2| 000002c0 2a 68 25 2c 62 25 2c 61 25 2c 62 25 2b 32 2a 68 |*h%,b%,a%,b%+2*h| 000002d0 25 2c 61 25 2b 32 2a 68 25 2c 62 25 2b 32 2a 68 |%,a%+2*h%,b%+2*h| 000002e0 25 29 0d 00 20 32 20 20 20 20 20 20 f2 50 61 74 |%).. 2 .Pat| 000002f0 68 5f 43 75 62 69 63 28 61 25 2b 32 2a 68 25 2c |h_Cubic(a%+2*h%,| 00000300 62 25 2c 61 25 2c 62 25 2b 32 2a 68 25 2c 61 25 |b%,a%,b%+2*h%,a%| 00000310 2c 62 25 29 0d 00 21 23 20 20 20 20 20 20 f2 50 |,b%)..!# .P| 00000320 61 74 68 5f 43 6c 6f 73 65 57 69 74 68 4c 69 6e |ath_CloseWithLin| 00000330 65 20 20 20 20 20 20 0d 00 22 14 20 f2 50 61 74 |e ..". .Pat| 00000340 68 5f 4f 62 6a 65 63 74 45 6e 64 0d 00 23 0c 3d |h_ObjectEnd..#.=| 00000350 6f 62 6a 65 63 74 25 0d 00 24 04 0d 00 25 04 0d |object%..$...%..| 00000360 00 26 04 0d 00 27 04 0d ff |.&...'...| 00000369