Home » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » InTheMag/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6
InTheMag/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6
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 » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 |
Filename: | InTheMag/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6 |
Read OK: | ✔ |
File size: | 015E bytes |
Load address: | 0000 |
Exec address: | 0000 |
Duplicates
There are 3 duplicate copies of this file in the archive:
- Archimedes archive » Archimedes World » AW-1994-12-Disc1.adf » Disk1Dec94 » !AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6
- Archimedes archive » Archimedes World » AW-1995-01-Disc1.adf » Disk1Jan95 » !AWJan95/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6
- Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » InTheMag/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6
- Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_6
File contents
flag=�Flag(0,1,2) �Tile(flag,10,5) �Quit DEF �Flag(a,b,height) REM Draws a vertical flag REM stem at (a,b) LOCAL path,x,y,X,Y �PathBegin(path) �Fill@(path,�Red) �@VLine(a,b,height) x=a+height/18 : y=b+9*height/8 X=a+height/8 : Y=b+7*height/8 �Bezier(x,y,X,Y,a+height/4,b+7*height/8) �Draw(a,b+3*height/4) �CloseWithLine �PathEnd =path
00000000 66 6c 61 67 3d bb 46 6c 61 67 28 30 2c 31 2c 32 |flag=.Flag(0,1,2| 00000010 29 20 20 20 0a a0 54 69 6c 65 28 66 6c 61 67 2c |) ..Tile(flag,| 00000020 31 30 2c 35 29 0a a0 51 75 69 74 0a 0a 44 45 46 |10,5)..Quit..DEF| 00000030 20 bb 46 6c 61 67 28 61 2c 62 2c 68 65 69 67 68 | .Flag(a,b,heigh| 00000040 74 29 0a 52 45 4d 20 44 72 61 77 73 20 61 20 76 |t).REM Draws a v| 00000050 65 72 74 69 63 61 6c 20 66 6c 61 67 0a 52 45 4d |ertical flag.REM| 00000060 20 73 74 65 6d 20 61 74 20 28 61 2c 62 29 0a 4c | stem at (a,b).L| 00000070 4f 43 41 4c 20 70 61 74 68 2c 78 2c 79 2c 58 2c |OCAL path,x,y,X,| 00000080 59 0a a0 50 61 74 68 42 65 67 69 6e 28 70 61 74 |Y..PathBegin(pat| 00000090 68 29 0a 20 a0 46 69 6c 6c 40 28 70 61 74 68 2c |h). .Fill@(path,| 000000a0 bb 52 65 64 29 0a 20 a0 40 56 4c 69 6e 65 28 61 |.Red). .@VLine(a| 000000b0 2c 62 2c 68 65 69 67 68 74 29 0a 20 20 78 3d 61 |,b,height). x=a| 000000c0 2b 68 65 69 67 68 74 2f 31 38 20 3a 20 79 3d 62 |+height/18 : y=b| 000000d0 2b 39 2a 68 65 69 67 68 74 2f 38 0a 20 20 58 3d |+9*height/8. X=| 000000e0 61 2b 68 65 69 67 68 74 2f 38 20 20 3a 20 59 3d |a+height/8 : Y=| 000000f0 62 2b 37 2a 68 65 69 67 68 74 2f 38 0a 20 a0 42 |b+7*height/8. .B| 00000100 65 7a 69 65 72 28 78 2c 79 2c 58 2c 59 2c 61 2b |ezier(x,y,X,Y,a+| 00000110 68 65 69 67 68 74 2f 34 2c 62 2b 37 2a 68 65 69 |height/4,b+7*hei| 00000120 67 68 74 2f 38 29 0a 20 a0 44 72 61 77 28 61 2c |ght/8). .Draw(a,| 00000130 62 2b 33 2a 68 65 69 67 68 74 2f 34 29 0a 20 a0 |b+3*height/4). .| 00000140 43 6c 6f 73 65 57 69 74 68 4c 69 6e 65 0a 20 a0 |CloseWithLine. .| 00000150 50 61 74 68 45 6e 64 0a 3d 70 61 74 68 0a |PathEnd.=path.| 0000015e