Turtle Graphics

The turtle module allows students to draw pictures using some simple Turtle graphics commands. For example, here is a Python program that uses Turtle graphics to draw a fractal known as the c-curve:

 

The Turtle class includes methods to

  • move the turtle given distance
  • move it to a given position
  • turn it a given number of degrees
  • set its direction
  • change its color
  • pick up its pen
  • put down its pen

© Ken Lambert. All rights reserved.