Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Fill/NonZero » Compare

Compare !AWMar94/Goodies/Basic/Fill/NonZero with !AWMar94/Goodies/Basic/Fill/EvenOdd

File: Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Fill/NonZero
Compared with: Archimedes archive » Archimedes World » AW-1994-03-Disc1.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Fill/EvenOdd
Similarity: 79% of bytes duplicated

37 of 40 lines (93.7%) are identical in the two listings. Duplicated Different

Line numbers are ignored when comparing lines, so that renumbered programs still match.

!AWMar94/Goodies/Basic/Fill/NonZero !AWMar94/Goodies/Basic/Fill/EvenOdd
1 1
2
2LIBRARY "PathLib:OS_units.Paths" 3LIBRARY "PathLib:OS_units.Paths"
3LIBRARY "PathLib:OS_units.Styles" 4LIBRARY "PathLib:OS_units.Styles"
4 5
5MODE MODE : PRINT "Non-zero fill" 6MODE MODE : PRINT "Even-odd fill"
6 width%=800 7 width%=800
7 object%=FNCreate_Object(0,0,width%) 8 object%=FNCreate_Object(0,0,width%)
8 style%=FNPath_CreateLineStyle(8) 9 style%=FNPath_CreateLineStyle(8)
9 dash%=FNPath_EquidistantDashPattern(32) 10 dash%=FNPath_EquidistantDashPattern(32)
10 PROCPath_TriangularLeadingCaps(2,2) 11 PROCPath_TriangularLeadingCaps(2,2)
11 12
12 ORIGIN 640,512 13 ORIGIN 640,512
13 14
14 GCOL 1 15 GCOL 1
15 SYS "Draw_Fill",object% 16 SYS "Draw_Fill",object%,FNPath_FillEvenOdd
16 17
17 PROCPath_SmoothDrawWithStyle(object%,2,style%,dash%) 18 PROCPath_SmoothDrawWithStyle(object%,2,style%,dash%)
18 19
19 20
20END 21END
21 22
22DEF FNCreate_Object(x%,y%,width%) 23DEF FNCreate_Object(x%,y%,width%)
23 LOCAL object% 24 LOCAL object%
24 PROCPath_ObjectBegin(object%,200) 25 PROCPath_ObjectBegin(object%,200)
25 REM First create sub-path square 26 REM First create sub-path square
26 PROCPath_Square(x%,y%,width%) 27 PROCPath_Square(x%,y%,width%)
27 REM Then create sub-path line 28 REM Then create sub-path line
28 h%=width%DIV4 29 h%=width%DIV4
29 a%=x%-h% : b%=y%-h% 30 a%=x%-h% : b%=y%-h%
30 PROCPath_Move(a%,b%) 31 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%+2*h%,b%+2*h%)
32 PROCPath_Cubic(a%+2*h%,b%,a%,b%+2*h%,a%,b%) 33 PROCPath_Cubic(a%+2*h%,b%,a%,b%+2*h%,a%,b%)
33 PROCPath_CloseWithLine 34 PROCPath_CloseWithLine
34 PROCPath_ObjectEnd 35 PROCPath_ObjectEnd
35=object% 36=object%
36 37
37 38
38 39
39 40