Home » Archimedes archive » Archimedes World » AW-1994-03-Disc1.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/ThickLines/Random » Compare
Compare !AWMar94/Goodies/Basic/ThickLines/Random with !AWMar94/Goodies/Basic/ThickLines/NoEntry
| File: | Archimedes archive » Archimedes World » AW-1994-03-Disc1.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/ThickLines/Random |
| Compared with: | Archimedes archive » Archimedes World » AW-1994-03-Disc1.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/ThickLines/NoEntry |
| Similarity: | 75% of bytes duplicated |
23 of 30 lines (79.3%) are identical in the two listings. Duplicated Different
Line numbers are ignored when comparing lines, so that renumbered programs still match.
| !AWMar94/Goodies/Basic/ThickLines/Random | !AWMar94/Goodies/Basic/ThickLines/NoEntry |
|---|---|
| 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 | 5MODE MODE |
| 7 | 6 |
| 8 sign%=FNCreate_NoEntrySign(0,0,200) | 7 sign%=FNCreate_NoEntrySign(0,0,200) |
| 9style%=FNPath_CreateLineStyle(2) | 8style%=FNPath_CreateLineStyle(16) |
| 10REPEAT | 9 |
| 11 PROCPath_LineThickness(RND(64)) | 10 ORIGIN 640,512 |
| 12 ORIGIN RND(1280),RND(1024) | 11 PROCPath_SmoothDrawWithStyle(sign%,1,style%,0) |
| 13 PROCPath_SmoothDrawWithStyle(sign%,RND(7),style%,0) | 12 |
| 14 UNTIL FALSE | |
| 15END | 13END |
| 16 | 14 |
| 17DEF FNCreate_NoEntrySign(x%,y%,radius%) | 15DEF FNCreate_NoEntrySign(x%,y%,radius%) |
| 18 LOCAL NoEntry% | 16 LOCAL NoEntry% |
| 19 PROCPath_ObjectBegin(NoEntry%,200) | 17 PROCPath_ObjectBegin(NoEntry%,200) |
| 20 REM First create sub-path circle | 18 REM First create sub-path circle |
| 21 PROCPath_Circle(x%,y%,radius%) | 19 PROCPath_Circle(x%,y%,radius%) |
| 22 REM Then create sub-path line | 20 REM Then create sub-path line |
| 23 PROCPath_Move(x%-radius%/SQR2,y%-radius%/SQR2) | 21 PROCPath_Move(x%-radius%/SQR2,y%-radius%/SQR2) |
| 24 PROCPath_Draw(x%+radius%/SQR2,y%+radius%/SQR2) | 22 PROCPath_Draw(x%+radius%/SQR2,y%+radius%/SQR2) |
| 25 PROCPath_ObjectEnd | 23 PROCPath_ObjectEnd |
| 26=NoEntry% | 24=NoEntry% |
| 27 | 25 |
| 28 | 26 |
| 29 | 27 |
| 30 | 28 |
.