Friday 23 May 2008

MSW Logo software

As promised - here's the link to the Logo program that we used in maths this week for repeating patterns:

http://www.softronix.com/download/mswlogo65.exe

I was pleasantly surprised by just how much you remembered from your year 4 ICT unit! Remember - use the 'Help' section of the program to help you to remember some of the trickier commands.

To get you started, see if you can figure out what this script will do:

to poly :sides :size
repeat :sides[fd :size rt (360/:sides)]
end
(Remember that a word that starts with a ':' is a variable which can be used instead of a number)

Then type in...
poly 6 200
poly 10 50

Ok - that was a bit nasty! Here's something interesting - you know how to draw, say, a twelve sided shape:

repeat 12[fd 200 rt 30]

When logo draws the shape, it turns through 360 degrees in 12 steps - so 30 degrees each step. Now try the same but instead of turning 30 degrees, turn 180 degrees MINUS 30 degrees instead. So:

repeat 12[fd 200 rt 150]

You end up with a nice effect! Can you do a 20 sided one? This doesn't seem to work with all shapes. Maybe needs some further investigation!


Have fun!

1 comment:

Anonymous said...

Thanks too

Raneem