• 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 
Picture
... to make a square?
Picture

use the i variable?

Use
Picture
to change colours at random .... and use the variable 'i' in your commands to change what happens ...
Picture
... and make a multicoloured spiral?

Why does this work, what happens to 'i' every turn.
Picture

make the turtle go faster?

Picture

make different shapes?

Try changing the angle, for example to 60, and see what happens.  
Picture

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.
Picture
Call it 'Circle'.  In the action tell the turtle just how to draw a circle.  Use this new command in your main action.
Picture

tell the computer what to draw

make a line like this ...
Picture
... to get input from the user, like this:
Picture
.. and then draw the shape they asked for.
Picture

Ready for more challenge ... click here

Powered by Create your own unique website with customizable templates.