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.resetscreen()

turtle.resetscreen() Reset all Turtles on the Screen to their initial state. Note This TurtleScreen method is available as a global function only under the name resetscreen. The global function reset is another one derived from the Turtle method reset.

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.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.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.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.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.pu()

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

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.pos()

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