Skip to content

DorkCodingsign/pythonanimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pythonanimation

Clock design and Spiral design. Turtle” is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like turtle.forward(…) and turtle.right(…) which can move the turtle around.Commonly used turtle methods are :

METHOD PARAMETER DESCRIPTION Turtle() None Creates and returns a new tutrle object forward() amount Moves the turtle forward by the specified amount backward() amount Moves the turtle backward by the specified amount right() angle Turns the turtle clockwise left() angle Turns the turtle counter clockwise penup() None Picks up the turtle’s Pen pendown() None Puts down the turtle’s Pen up() None Picks up the turtle’s Pen down() None Puts down the turtle’s Pen color() Color name Changes the color of the turtle’s pen fillcolor() Color name Changes the color of the turtle will use to fill a polygon heading() None Returns the current heading position() None Returns the current position goto() x, y Move the turtle to position x,y begin_fill() None Remember the starting point for a filled polygon end_fill() None Close the polygon and fill with the current fill color dot() None Leave the dot at the current position stamp() None Leaves an impression of a turtle shape at the current location shape() shapename Should be ‘arrow’, ‘classic’, ‘turtle’ or ‘circle’

About

Clock design and Spiral design.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published