Home » Archimedes archive » Archimedes World » AW-1995-01-Disc1.adf » Disk1Jan95 » !AWJan95/Goodies/DrawBasic/January95/Example_5
!AWJan95/Goodies/DrawBasic/January95/Example_5
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-01-Disc1.adf » Disk1Jan95 |
Filename: | !AWJan95/Goodies/DrawBasic/January95/Example_5 |
Read OK: | ✔ |
File size: | 00DD bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
REM > Draws a flower r=K SIN(theta) h=PI/100 : K=3 : m=10 �Origin(3,3) �PathBegin(flower) �Move(0,0) FOR theta=0 TO 2*PI STEP h r=K*SIN(m*theta) �DrawPolar(r,theta) NEXT �PathEnd �Quit
00000000 52 45 4d 20 3e 20 44 72 61 77 73 20 61 20 66 6c |REM > Draws a fl| 00000010 6f 77 65 72 20 72 3d 4b 20 53 49 4e 28 74 68 65 |ower r=K SIN(the| 00000020 74 61 29 0a 68 3d 50 49 2f 31 30 30 20 20 3a 20 |ta).h=PI/100 : | 00000030 4b 3d 33 20 20 3a 20 6d 3d 31 30 0a 20 20 a0 4f |K=3 : m=10. .O| 00000040 72 69 67 69 6e 28 33 2c 33 29 20 0a 20 20 a0 50 |rigin(3,3) . .P| 00000050 61 74 68 42 65 67 69 6e 28 66 6c 6f 77 65 72 29 |athBegin(flower)| 00000060 0a 20 20 a0 4d 6f 76 65 28 30 2c 30 29 0a 20 20 |. .Move(0,0). | 00000070 20 20 20 46 4f 52 20 74 68 65 74 61 3d 30 20 54 | FOR theta=0 T| 00000080 4f 20 32 2a 50 49 20 53 54 45 50 20 68 0a 20 20 |O 2*PI STEP h. | 00000090 20 20 20 20 20 72 3d 4b 2a 53 49 4e 28 6d 2a 74 | r=K*SIN(m*t| 000000a0 68 65 74 61 29 0a 20 20 20 20 20 20 a0 44 72 61 |heta). .Dra| 000000b0 77 50 6f 6c 61 72 28 72 2c 74 68 65 74 61 29 0a |wPolar(r,theta).| 000000c0 20 20 20 20 20 20 20 4e 45 58 54 0a 20 20 20 a0 | NEXT. .| 000000d0 50 61 74 68 45 6e 64 0a a0 51 75 69 74 |PathEnd..Quit| 000000dd