Home » Archimedes archive » Archimedes World » AW-1994-03-Disc1.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/Fill/EvenOdd » Compare

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

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