You may also like

Spirostars

A spiropath is a sequence of connected line segments end to end taking different directions. The same spiropath is iterated. When does it cycle and when does it go on indefinitely?

LOGO Challenge - the Humble Square

Look at how the pattern is built up - in that way you will know how to break the final pattern down into more manageable pieces.

LOGO Challenge - the Logic of LOGO

Just four procedures were used to produce a design. How was it done? Can you be systematic and elegant so that someone can follow your logic?

First Forward Into Logo 8: More about Variables

Age 11 to 18 Challenge Level:

First Forward Into Logo
Previous: FF7


You might like to learn some more Logo by going to Muggles, Logo and Gradients.

Consider the following procedure:
TO PATTERN :SIZE
REPEAT 5 [FORWARD :SIZE RT 144]
END


What is different about this procedure?

Did you notice :SIZE ?

It is called a VARIABLE .

It is always written in a particular way using a colon.

What do you think this is about?

What does the word variable suggest to you?

Why not type in the procedure above and then copy the following:
PATTERN 30
PATTERN 60
PATTERN 120
PATTERN

Or experiment with different numbers for yourself and see what patterns you can produce.

Are you feeling happier with the idea of a variable? If so why not explore further this idea of using a variable in those procedures you have met previously.
TO SQUARE :SIZE
REPEAT 4 [ FD :SIZE RT 90]
END

TO HEXAGON :S
REPEAT 6 [ FD :S RT 60]
END

TO DODECA :S
REPEAT 12 [BK :S LT 30]
END

 

Next: FF9