# Rotation of a square

Challenge Level: Beginner

Learning outcomes

Students will be able to:

## Requirement:

Write a program that draws a square, starting from point x:0, y:0, with its sides equal to 100 steps. Your program must then draw squares that are each rotated 15 degrees from the previous one (forever), changing its colour every time it draws a new square.

## Testing examples:

There are no testing examples for this challenge.

## Languages

Scratch

#### What it should look like

Click on the green flag to see the expected output of your program.

Recommended blocks
when green flag clicked
clear

pen down

pen up

change pen color by (10)
go to x: (0) y: (0)

move (100) steps

turn cw (90) degrees

turn cw (15) degrees
forever
end

repeat (4)
end
Hints
• You may change the pen’s colour by a specified amount by using the change pen color by (10) block under the “pen” script.
• You can speed up the drawing by selecting the turbo speed under the edit menu.