Welcome to iTurtle -- iTurtle is a fun iPad app that helps teach the basics of computer programming.
iTurtle can also create fairly complex graphics with very simple commands. It's a great way to explore
your createive side. let's start with a simple example. Use the 'copy and paste' feature to grab the code below and paste
it into the command window of iTurtle then hit 'go' to see wha happens. Once you've done that
come back here.
forward 100
right 90
forward 100
right 90
forward 100
right 90
forward 100
Pretty neat huh? Try changing some of the values to see how it effects it.
iTurtle uses Logo as it's command language -- there are a number of commands that it understandss.
- FORWARD x
- BACKWARD x
- RIGHT x
- LEFT x
- PENUP
- PENDOWN
- HOME - go back to (0,0)
- CLEAR - clear the screen
- REPEAT x [command]
The letter "x" above should be replaced by a number representing the number of
spaces to move (in the case of FORWARD and BACKWARD commands), the number
of degress to turn (in the case of RIGHT and LEFT), or the number of repetitions (REPEAT command). You can also use 'Random' to place it a random number
Advanced commands:
- NEWTURTLE "name - create a new turtle, with a name
- TALKTO "name - send commands to a specific turtle
- MAKE "name [value] - create a variable with a value
- SETCOLOR :[color|variable] - set the drawing color
- SETBG :[color|variable] - set the background color
Here is a another example using some of the advanced commands.
newturtle "Fred
talkto "Fred
setcolor 10
make "bgcolor 123
setbg :bgcolor
forward 100
right 90
repeat 4 [forward 100 right 90]
Here is a 'Escher' like picture
repeat 6 [
right 60
setcolor random
repeat 6 [
forward 50
right 60
]
]