Upper Sixth Theory
Turtle Graphics Challenges
create a loop using for?
Use a For 0 < i < 4
... to make a square?
use the i variable?
to change colours at random .... and use the variable 'i' in your commands to change what happens ...
... and make a multicoloured spiral?
Why does this work, what happens to 'i' every turn.
make the turtle go faster?
make different shapes?
Try changing the angle, for example to 60, and see what happens.
Add some circles
This is the simple square, but after drawing each line the turtle draws a circle.
Make this by creating a new action.
Call it 'Circle'. In the action tell the turtle just how to draw a circle. Use this new command in your main action.
tell the computer what to draw
make a line like this ...
... to get input from the user, like this:
.. and then draw the shape they asked for.
Ready for more challenge ... click here
Create a free website