๐ ๏ธ Section project: a board of coloured shapes
Section 5: LoopsLesson 5.4 ยท โฑ 15 min
Use loops and the pen to draw a piece of art from shapes turning around one point.
๐ฏ Project goal
Robo draws 12 squares around the middle, each in a different colour, and a colourful flower appears.

Steps
- Clear the stage, go to the middle and put the pen down.
- Make a square with repeat (4).
- Put the square inside repeat (12), and after each square turn 30 degrees (because 360 รท 12 = 30).
- Change the pen colour after each square.

๐ Note
This is called a loop inside a loop: the inner loop draws a square, and the outer loop repeats the square 12 times.
๐ Another example: a five-pointed star
The star has 5 sides, and Robo turns 144 degrees after each side (5 ร 144 = 720, two full turns).


โ๏ธ Practise
Draw your own board: choose a shape, a number and an angle, and change the colours.
โ๏ธ Practise here in the lessonโ Close the labor open the lab in a new page โ
๐ฏ Challenge yourself
Easy
Swap the square in the board for a triangle: 12 triangles turning 30 degrees.
๐ Show the solution๐ Hide the solution


Medium
A rose of 6 hexagons, each turned 60 degrees from the one before.
๐ Show the solution๐ Hide the solution


Hard
Two boards: a ring of 8 red squares on the left, and a ring of 8 green triangles on the right.
๐ Show the solution๐ Hide the solution



