Turtle Graphics Method
Method
|
Parameter
|
Description
|
|||
|
None
|
Creates and returns a new turtle object
|
|||
|
amount
|
Moves the turtle forward by the specified amount
|
|||
|
|
Moves the turtle backward by the specified amount
|
|||
|
|
Turns the turtle clockwise
|
|||
|
angle
|
Turns the turtle counter clockwise
|
|||
|
None
|
Picks up the turtle’s Pen
|
|||
|
None
|
Puts down the turtle’s Pen
|
|||
|
None
|
Picks up the turtle’s Pen
|
|||
|
None
|
Puts down the turtle’s Pen
|
|||
|
Color name
|
Changes the color of the turtle’s pen
|
|||
|
Color name
|
Changes the color of the turtle will use to fill a polygon
|
|||
|
None
|
Returns the current heading
|
|||
|
None
|
Returns the current position
|
|||
|
x, y
|
Move the turtle to position x,y
|
|||
|
None
|
Remember the starting point for a filled polygon
|
|||
|
None
|
Close the polygon and fill with the current fill color
|
|||
|
None
|
Leave the dot at the current position
|
|||
|
None
|
Leaves an impression of a turtle shape at the current
location
|
|||
|
shapename
|
Should be ‘arrow’, ‘classic’,
‘turtle’ or ‘circle’
|