5
Create Fireworks in MS Logo! This task will use the following programming concepts •Iteration loops (repeat 4 [fd 40 rt 90]) •Simple functions (which require you to create a procedure in MSW Logo) •Random numbers •Nesting one function within another Open MSLogo and experiment using some of the codes, such as:- fd 90, rt 60, fd 100 setpc [255 0 0] – to set the pen colour to red pu – to take the pen off the page, and then move, then pd to draw again. RGB (Red Green Blue) C o l o u r Codes •Black [0 0 0] •Red [255 0 0] •Blue [0 0 255] •Yellow [255 255 0] •Pink [255 20 147] •Purple [128 0 128] •Green [0 255 0] •White [255 255 255] For 500 different Colour Codes, please go to…. http://cloford.c om/resources/col ours/500col.htm Challenges:- Page 1

Create Fireworks in MS Logo

Embed Size (px)

DESCRIPTION

Instructions for creating "fireworks" and then going on to make a fireworks display using a range of pen up, pen down, set pen colour and move procedures. Uses free MSlogo software.

Citation preview

Create Fireworks in MS Logo!This task will use the following programming concepts Iteration loops (repeat 4 [fd 40 rt 90]) Simple functions (which require you to create a procedure in MSW Logo) Random numbers Nesting one function within another

Open MSLogo and experiment using some of the codes, such as:-fd 90, rt 60, fd 100setpc [255 0 0] to set the pen colour to redpu to take the pen off the page, and then move, then pd to draw again.RGB (Red Green Blue) Colour Codes Black [0 0 0] Red [255 0 0] Blue [0 0 255] Yellow [255 255 0] Pink [255 20 147] Purple [128 0 128] Green [0 255 0] White [255 255 255]

For 500 different Colour Codes, please go to. http://cloford.com/resources/colours/500col.htm

Challenges:- Draw a square Use a repeat to draw a square Write a procedure to draw the square when you tell mslogo square. Go to File > Edit and type square in the top box, and between the to and end rows put the code to draw a square. Draw a firework something like. repeat 40 [fd 80 rt 156]

Page 4