Homework
Thirds
Upper Thirds
Fourth
Divisions
ICT
Computer Science
Fifth
Lower Sixth
Upper Sixth
Upper Sixth Theory
Blog
Careers
Unity
Networking
Turtle Graphics Challenges
Can you...
create a loop using for?
Use a For 0 < i < 4
... to make a square?
use the i variable?
Use
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