Home » Archimedes archive » Archimedes World » AW-1994-12-Disc1.adf » Disk1Dec94 » !AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_3

!AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_3

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-1994-12-Disc1.adf » Disk1Dec94
Filename: !AWDec94/Goodies/DrawBasic/!DrawBasic/Library/Examples/Chapter/Ex_3
Read OK:
File size: 00A1 bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
K=5
 n=400 : D=2*PI/n
 angle=0
 �Origin(5,5)
 �PathBegin(path)
 FOR i=1 TO 400
  r=K*SIN(2*angle)
  �@CirclePolar(r,angle,.5)  
  angle+=D
  NEXT
 �PathEnd
�Quit
00000000  4b 3d 35 0a 20 6e 3d 34  30 30 20 3a 20 44 3d 32  |K=5. n=400 : D=2|
00000010  2a 50 49 2f 6e 0a 20 61  6e 67 6c 65 3d 30 0a 20  |*PI/n. angle=0. |
00000020  a0 4f 72 69 67 69 6e 28  35 2c 35 29 0a 20 a0 50  |.Origin(5,5). .P|
00000030  61 74 68 42 65 67 69 6e  28 70 61 74 68 29 0a 20  |athBegin(path). |
00000040  46 4f 52 20 69 3d 31 20  54 4f 20 34 30 30 0a 20  |FOR i=1 TO 400. |
00000050  20 72 3d 4b 2a 53 49 4e  28 32 2a 61 6e 67 6c 65  | r=K*SIN(2*angle|
00000060  29 0a 20 20 a0 40 43 69  72 63 6c 65 50 6f 6c 61  |).  .@CirclePola|
00000070  72 28 72 2c 61 6e 67 6c  65 2c 2e 35 29 20 20 0a  |r(r,angle,.5)  .|
00000080  20 20 61 6e 67 6c 65 2b  3d 44 0a 20 20 4e 45 58  |  angle+=D.  NEX|
00000090  54 0a 20 a0 50 61 74 68  45 6e 64 0a a0 51 75 69  |T. .PathEnd..Qui|
000000a0  74                                                |t|
000000a1