The TurtleDrawing class is a subclass of Drawing which allows drawing via a series of "logo turtle"-like commands. Drawing is accomplished by giving commands to a turtle moving around in 3D space. All commands are interpreted from the turtle's perspective, taking into account its current position and orientation.Unlike other angles used by breve, this class refers to angles as degrees and not radians to more closely match the behavior of traditional Logo implementations.
Manipulating the Turtle Avatar
Moving the Turtle
Moves the turtle back by length.
Moves the turtle forward by length.
Returns the turtle agent object (an instance of Mobile).
Hides the agent representing the turtle's current position and location. The turtle can be shown again using the method show-turtle.
Puts the pen down so that lines are drawn as the turtle moves. This is done by setting transparency to 1.0.
Lifts the pen so that no lines are drawn as the turtle moves. This is done by setting transparency to 0.0.
"Pops" a state from the state stack and makes it current. This method reenables the most recently "pushed" state (done with push-state).
"Pushes" the current direction, color and point onto a stack so that it can be retrieved later using pop-state.
Sets the current pen color to color, with optional transparency value trans.
Shows the agent representing the turtle's current position and location. The turtle is visible by default, but can be hidden using hide-turtle.
Rotates the Turtle left by angle degrees.
Rotates the Turtle left by angle degrees.
Rotates the Turtle right by angle degrees.
Rotates the Turtle right by angle degrees.