The turtle module provides turtle graphics primitives, in both an
object-oriented and procedure-oriented ways. Because it uses Tkinter
for the underlying graphics, it needs a version of python installed with
Tk support.
The procedural interface uses a pen and a canvas which are automagically
created when any of the functions are called.
The turtle module defines the following functions:
Set the pen color. In the first form, the color is specified as a
Tk color specification as a string. The second form specifies the
color as a tuple of the RGB values, each in the range [0..1]. For the
third form, the color is specified giving the RGB values as three
separate parameters (each in the range [0..1]).
The complete specifications are rather complex, but the recommended
usage is: call fill(1) before drawing a path you want to fill,
and call fill(0) when you finish to draw the path.
Draw a circle with radius radius whose center-point is where the
pen would be if a forward(radius) were
called. extent determines which part of a circle is drawn: if
not given it defaults to a full circle.
If extent is not a full circle, one endpoint of the arc is the
current pen position. The arc is drawn in a counter clockwise
direction if radius is positive, otherwise in a clockwise
direction.
Go to co-ordinates x, y. The co-ordinates may be
specified either as two separate arguments or as a 2-tuple.
This module also does from math import *, so see the
documentation for the math module for additional constants
and functions useful for turtle graphics.