Specifying the Turtle Status
shape()
Use this function to specify the turtle shape or to return the current turtle shape. There are two available turtle
shapes.
"classic"
Syntax 1: shape(name)
Use this syntax to specify the shape of the turtle.
• name argument: Uses keywords (classic, turtle) to specify the turtle shape.
- Type: str
- How to specify: For example, if you want a "classic" (arrow) shaped turtle, specify shape(name="classic")
or shape("classic").
- Initial default: "classic"
Syntax 2: shape() (no argument)
Returns the currently specified turtle shape.
speed()
Specifies the drawing speed of the turtle (the speed the turtle moves when the pen is down) or returns the
currently specified turtle drawing speed.
Syntax 1: speed(speed)
Specifies the speed of turtle drawing. The speed argument can be a real number or a keyword.
• Specifying by real number: Input a value from 0 to 10. 0 is the fastest speed. For non-zero values, a greater
number corresponds to a faster speed. The setting defaults to 0 if a value outside of the allowable range
is specified.
- Type: int or float
- Initial default: 5
• Specifying by keyword: Use the keyword strings shown in the table below.
Keyword
- Type: str
- How to specify: To specify slow, for example, use speed(speed="slow"), or speed("slow")
- Initial default: speed=None
Syntax 2: speed() (no argument)
Returns the real number that corresponds to the turtle's currently specified drawing speed.
showturtle()
Displays the turtle on the drawing screen.
Syntax: showturtle() (no argument)
hideturtle()
Hides the drawing screen turtle.
fastest
fast
normal
slow
slowest
Corresponding Real Number
134
"turtle"
0
10
6
3
1
Need help?
Do you have a question about the CLASSWIZ CG and is the answer not in the manual?
Questions and answers