In this lesson, students will be introduced to Turtle graphics in Python. Through a provided template, students will trace existing circles by writing code that utilises these functions, allowing them to explore creative way of drawing through programming. As part of this project you will learn:
Turtle is a graphic library for Python. Using Turtle, we can easily draw in a drawing board.
First, we import the turtle module. Then create a window, next we create a turtle object and using the turtle method we can draw on the drawing board.
Now, let's explore some essential Turtle functions. We'll start by drawing a circle and filling it with a colour. We will use the following commands:
To draw the rectangle, follow these steps:
You are given a grid with circles and you need to trace and fill them with specified colors
Feel free to experiment with different starting positions,and dimensions to trace the circles. Remember to have fun and unleash your creativity!
Your code should be similar to this:
You have completed this project.