Turtle Graphics Labs¶
These labs are ideal for students that have never done programming before. It will slowly introduce them to the concepts we used to write a program. The goal is to keep the number of blocks small but still teach the key concepts. These labs will be repeated in the Python curriculum once students gain keyboarding skills.
Labs Ready to Run¶
Each lab is a complete lesson with a challenge, a starter program you can download and open in Scratch, and a solution you can reveal when you are ready.
| Lab | Level | Time | The Challenge |
|---|---|---|---|
| Draw a Square | Beginner | 20 min | Cody draws one side and stops. Finish the program so he walks the whole square. |
Planned Labs¶
The rest of this page is the plan for labs still to be written.
Sprite Movement Commands¶
Move a sprite in a square - we first need to understand the idea of an event that triggers the start of the program
- From Events Add the green "When Flag Clicked" Block
- From Motion Add the Move Foward
- Change Move Foward to be 100
- From the Motion Add the Turn Right
- Change the turn right to be 90
- Add more blocks to complete a square
Drawing with the Pen¶
Add the drawing extension and use the pendown - this lab is to get the students familiar with using the turtle to draw lines
- Add the pendown before the Move Foward
- Add the pen color block
- Change the pen color
- Change the pen size
Adding Variables¶
- Add a Variable for the Distance
- Add a Variable for the Angle
Adding a Loop¶
- Put the Forward and Right the for loop
- Change the Loop Count
Draw a Hexagon¶
- Change the angle to be 60
- Change the loop count to be 6
Change the Drawing Color for Even/Odd Steps in a Loop¶
- Conditionals Add a conditional block that will change the color