![]() |
VOOZH | about |
Turtle is an inbuilt module in python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle. To move turtle, there are some functions i.e forward(), backward(), etc.
Following steps are used:
- Import Turtle package.
- Set screen with dimensions and color.
- Form turtle object with color.
- Form the object (ball - made of colored circle).
- Call the function for making object again and again and clear the screen.
Below is the implementation :
Example 2: Move the Object (box)
Following steps are used:
- Import Turtle package.
- Set screen with dimensions and color.
- Form turtle object with color.
- Form the object (box - made of colored square).
- Call the function for making object again and again and clear the screen.
Below is the implementation:-