Some Turtle Commands you can Try
Here are some more turtle commands you can try out:
Set the background colour of your window
- bgcolor("orange")
Moving forward and back, Turning left and right
- forward() or fd() eg forward(100)
- backward() or bk() or back()
- right() or rt() eg right(45) turns right 45 degrees
- left() or lt()
Moving to a position
- goto(x,y) eg goto(100,200) or goto(-100, 200)
Point in a direction
- setheading() eg setheading(200)
Note heading 0 points to the right, 90 is straight up etc
Pen Commands
- pendown() or pd()
- penup() or pu()
- pensize()
- pencolor() eg pencolor("green")
When the turtle has its pen up, it moves without drawing.
Erasing
- undo()
- clearscreen()
Other commands to experiment with
|
|
|
![]() |
|
![]() |
|
![]() |
|







