Home » Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » InTheMag/DrawBasic/RND_Shapes
InTheMag/DrawBasic/RND_Shapes
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/RND_Shapes |
Read OK: | ✔ |
File size: | 01AA bytes |
Load address: | 0000 |
Exec address: | 0000 |
Duplicates
There are 5 duplicate copies of this file in the archive:
- Archimedes archive » Archimedes World » AW-1995-03-Disc1.adf » Disk1Mar95 » !AWMar95/Goodies/DrawBasic/RND_Shapes
- Archimedes archive » Archimedes World » AW-1995-04-Disc1.adf » Disk1Apr95 » !AWApr95/Goodies/Draw/RND_Shapes
- Archimedes archive » Archimedes World » AW-1995-01-Disc1.adf » Disk1Jan95 » !AWJan95/Goodies/DrawBasic/!DrawBasic/Library/RND_Shapes
- Archimedes archive » Archimedes World » AW-1994-12-Disc1.adf » Disk1Dec94 » !AWDec94/Goodies/DrawBasic/!DrawBasic/Library/TestProgs/RND_Shapes
- Archimedes archive » Archimedes World » AW-1995-05-Disc1.adf » AWMay95_1 » InTheMag/DrawBasic/RND_Shapes
- Archimedes archive » Archimedes World » AW-1995-02-Disc1.adf » Disk1Feb95 » !AWFeb95/Goodies/DrawBasic/!DrawBasic/Library/RND_Shapes
File contents
REM Confetti REM REM Draws more than 30 random shapes REM FOR i=1 TO 30 �Fill(RND) �Colour(RND) �Symbol(RND(10)-1,RND(200)) �Point(2+RND(11),2+RND(11)) IF RND(6)=1 THEN �RegularPolygon(2+RND(10),2+RND(13),RND(4),4+RND(10)) IF RND(10)=1 THEN �Ellipse(RND(10),RND(13),RND(4),RND(4)) IF RND(10)=1 THEN �Font("Trinity.Medium",RND(400)+10) �AnglePrint(CHR$(64+RND(16)),RND(10),RND(13),RAD(RND(360))) ENDIF NEXT �Quit
00000000 52 45 4d 20 43 6f 6e 66 65 74 74 69 0a 52 45 4d |REM Confetti.REM| 00000010 0a 52 45 4d 20 44 72 61 77 73 20 6d 6f 72 65 20 |.REM Draws more | 00000020 74 68 61 6e 20 33 30 20 72 61 6e 64 6f 6d 20 73 |than 30 random s| 00000030 68 61 70 65 73 0a 52 45 4d 0a 46 4f 52 20 69 3d |hapes.REM.FOR i=| 00000040 31 20 54 4f 20 33 30 0a 20 a0 46 69 6c 6c 28 52 |1 TO 30. .Fill(R| 00000050 4e 44 29 0a 20 a0 43 6f 6c 6f 75 72 28 52 4e 44 |ND). .Colour(RND| 00000060 29 0a 20 a0 53 79 6d 62 6f 6c 28 52 4e 44 28 31 |). .Symbol(RND(1| 00000070 30 29 2d 31 2c 52 4e 44 28 32 30 30 29 29 0a 20 |0)-1,RND(200)). | 00000080 a0 50 6f 69 6e 74 28 32 2b 52 4e 44 28 31 31 29 |.Point(2+RND(11)| 00000090 2c 32 2b 52 4e 44 28 31 31 29 29 0a 20 49 46 20 |,2+RND(11)). IF | 000000a0 52 4e 44 28 36 29 3d 31 20 54 48 45 4e 20 a0 52 |RND(6)=1 THEN .R| 000000b0 65 67 75 6c 61 72 50 6f 6c 79 67 6f 6e 28 32 2b |egularPolygon(2+| 000000c0 52 4e 44 28 31 30 29 2c 32 2b 52 4e 44 28 31 33 |RND(10),2+RND(13| 000000d0 29 2c 52 4e 44 28 34 29 2c 34 2b 52 4e 44 28 31 |),RND(4),4+RND(1| 000000e0 30 29 29 0a 20 49 46 20 52 4e 44 28 31 30 29 3d |0)). IF RND(10)=| 000000f0 31 20 54 48 45 4e 20 a0 45 6c 6c 69 70 73 65 28 |1 THEN .Ellipse(| 00000100 52 4e 44 28 31 30 29 2c 52 4e 44 28 31 33 29 2c |RND(10),RND(13),| 00000110 52 4e 44 28 34 29 2c 52 4e 44 28 34 29 29 0a 20 |RND(4),RND(4)). | 00000120 49 46 20 52 4e 44 28 31 30 29 3d 31 20 54 48 45 |IF RND(10)=1 THE| 00000130 4e 0a 20 20 a0 46 6f 6e 74 28 22 54 72 69 6e 69 |N. .Font("Trini| 00000140 74 79 2e 4d 65 64 69 75 6d 22 2c 52 4e 44 28 34 |ty.Medium",RND(4| 00000150 30 30 29 2b 31 30 29 0a 20 20 a0 41 6e 67 6c 65 |00)+10). .Angle| 00000160 50 72 69 6e 74 28 43 48 52 24 28 36 34 2b 52 4e |Print(CHR$(64+RN| 00000170 44 28 31 36 29 29 2c 52 4e 44 28 31 30 29 2c 52 |D(16)),RND(10),R| 00000180 4e 44 28 31 33 29 2c 52 41 44 28 52 4e 44 28 33 |ND(13),RAD(RND(3| 00000190 36 30 29 29 29 0a 20 20 45 4e 44 49 46 0a 20 4e |60))). ENDIF. N| 000001a0 45 58 54 0a 20 a0 51 75 69 74 |EXT. .Quit| 000001aa