turtle.reset()

turtle.reset() Delete the turtle’s drawings from the screen, re-center the turtle and set variables to the default values. >>> turtle.goto(0,-22) >>> turtle.left(100) >>> turtle.position() (0.00,-22.00) >>> turtle.heading() 100.0 >>> turtle.reset() >>> turtle.position() (0.00,0.00) >>> turtle.heading() 0.0

turtle.right()

turtle.right(angle) turtle.rt(angle) Parameters: angle – a number (integer or float) Turn turtle right by angle units. (Units are by default degrees, but can be set via the degrees() and radians() functions.) Angle orientation depends on the turtle mode, see mode(). >>> turtle.heading() 22.0 >>> turtle.right(45) >>> turtle.heading() 337.0

turtle.resizemode()

turtle.resizemode(rmode=None) Parameters: rmode – one of the strings “auto”, “user”, “noresize” Set resizemode to one of the values: “auto”, “user”, “noresize”. If rmode is not given, return current resizemode. Different resizemodes have the following effects: “auto”: adapts the appearance of the turtle corresponding to the value of pensize. “user”: adapts the appearance of the turtle according to the values of stretchfactor and outlinewidth (outline), which are set by shapesize(). “nores

turtle.RawPen

class turtle.RawPen(canvas) Parameters: canvas – a tkinter.Canvas, a ScrolledCanvas or a TurtleScreen Create a turtle. The turtle has all methods described above as “methods of Turtle/RawTurtle”.

turtle.RawTurtle

class turtle.RawTurtle(canvas) class turtle.RawPen(canvas) Parameters: canvas – a tkinter.Canvas, a ScrolledCanvas or a TurtleScreen Create a turtle. The turtle has all methods described above as “methods of Turtle/RawTurtle”.

turtle.register_shape()

turtle.register_shape(name, shape=None) turtle.addshape(name, shape=None) There are three different ways to call this function: name is the name of a gif-file and shape is None: Install the corresponding image shape. >>> screen.register_shape("turtle.gif") Note Image shapes do not rotate when turning the turtle, so they do not display the heading of the turtle! name is an arbitrary string and shape is a tuple of pairs of coordinates: Install the corresponding polygon shape. >

turtle.pu()

turtle.pu() turtle.up() Pull the pen up – no drawing when moving.

turtle.radians()

turtle.radians() Set the angle measurement units to radians. Equivalent to degrees(2*math.pi). >>> turtle.home() >>> turtle.left(90) >>> turtle.heading() 90.0 >>> turtle.radians() >>> turtle.heading() 1.5707963267948966

turtle.position()

turtle.position() turtle.pos() Return the turtle’s current location (x,y) (as a Vec2D vector). >>> turtle.pos() (440.00,-0.00)

turtle.penup()

turtle.penup() turtle.pu() turtle.up() Pull the pen up – no drawing when moving.