Home » Archimedes archive » Archimedes World » AW-1993-05.adf » AWMay93 » !AWMay93/Goodies/LogoV2/NewProgs/Triangles

!AWMay93/Goodies/LogoV2/NewProgs/Triangles

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-1993-05.adf » AWMay93
Filename: !AWMay93/Goodies/LogoV2/NewProgs/Triangles
Read OK:
File size: 00C2 bytes
Load address: 0000
Exec address: 0000
File contents
/ Draws triangles at random positions

RESTART           

[12

PENCOLOUR RND(14)+1

penup:FORWARD 130:pendown
RIGHT 30

TRIANGLE
]

FINISH

TO TRIANGLE         
[3:FORWARD 100:RIGHT 120:]
ENDTO
00000000  2f 20 44 72 61 77 73 20  74 72 69 61 6e 67 6c 65  |/ Draws triangle|
00000010  73 20 61 74 20 72 61 6e  64 6f 6d 20 70 6f 73 69  |s at random posi|
00000020  74 69 6f 6e 73 0a 0a 52  45 53 54 41 52 54 20 20  |tions..RESTART  |
00000030  20 20 20 20 20 20 20 20  20 0a 0a 5b 31 32 0a 0a  |         ..[12..|
00000040  50 45 4e 43 4f 4c 4f 55  52 20 52 4e 44 28 31 34  |PENCOLOUR RND(14|
00000050  29 2b 31 0a 0a 70 65 6e  75 70 3a 46 4f 52 57 41  |)+1..penup:FORWA|
00000060  52 44 20 31 33 30 3a 70  65 6e 64 6f 77 6e 0a 52  |RD 130:pendown.R|
00000070  49 47 48 54 20 33 30 0a  0a 54 52 49 41 4e 47 4c  |IGHT 30..TRIANGL|
00000080  45 0a 5d 0a 0a 46 49 4e  49 53 48 0a 0a 54 4f 20  |E.]..FINISH..TO |
00000090  54 52 49 41 4e 47 4c 45  20 20 20 20 20 20 20 20  |TRIANGLE        |
000000a0  20 0a 5b 33 3a 46 4f 52  57 41 52 44 20 31 30 30  | .[3:FORWARD 100|
000000b0  3a 52 49 47 48 54 20 31  32 30 3a 5d 0a 45 4e 44  |:RIGHT 120:].END|
000000c0  54 4f                                             |TO|
000000c2