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