Home » Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/Style/Example_6

!AWFeb95/Goodies/DrawBasic/Style/Example_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-02-Disc1.adf » Disk1Feb95
Filename: !AWFeb95/Goodies/DrawBasic/Style/Example_6
Read OK:
File size: 00D0 bytes
Load address: 0000
Exec address: 0000
File contents
�Fill(�Black)
�WindingRule(0)
�NestofCircles
�Quit

DEF �NestofCircles
LOCAL path
�PathBegin(path)
 FOR n=1 TO 5
  �@Circle(5,5,n)
  NEXT
 �PathEnd
 ENDPROC

REM Notice the use of the subpath command @Circle
00000000  a0 46 69 6c 6c 28 bb 42  6c 61 63 6b 29 0a a0 57  |.Fill(.Black)..W|
00000010  69 6e 64 69 6e 67 52 75  6c 65 28 30 29 0a a0 4e  |indingRule(0)..N|
00000020  65 73 74 6f 66 43 69 72  63 6c 65 73 0a a0 51 75  |estofCircles..Qu|
00000030  69 74 0a 0a 44 45 46 20  a0 4e 65 73 74 6f 66 43  |it..DEF .NestofC|
00000040  69 72 63 6c 65 73 0a 4c  4f 43 41 4c 20 70 61 74  |ircles.LOCAL pat|
00000050  68 0a a0 50 61 74 68 42  65 67 69 6e 28 70 61 74  |h..PathBegin(pat|
00000060  68 29 0a 20 46 4f 52 20  6e 3d 31 20 54 4f 20 35  |h). FOR n=1 TO 5|
00000070  0a 20 20 a0 40 43 69 72  63 6c 65 28 35 2c 35 2c  |.  .@Circle(5,5,|
00000080  6e 29 0a 20 20 4e 45 58  54 0a 20 a0 50 61 74 68  |n).  NEXT. .Path|
00000090  45 6e 64 0a 20 45 4e 44  50 52 4f 43 0a 0a 52 45  |End. ENDPROC..RE|
000000a0  4d 20 4e 6f 74 69 63 65  20 74 68 65 20 75 73 65  |M Notice the use|
000000b0  20 6f 66 20 74 68 65 20  73 75 62 70 61 74 68 20  | of the subpath |
000000c0  63 6f 6d 6d 61 6e 64 20  40 43 69 72 63 6c 65 0a  |command @Circle.|
000000d0