Rotation of a circle

Challenge Level: Growing experience

Learning outcomes

Students will be able to:

Requirement:

Write a program that draws a circle, with the given centre point x:0, y:0, and its radius equal to 50 steps. Your program must then draw circles that are each rotated 15 degrees from the previous one (forever), changing its colour every time it draws a new circle.

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)
set [pi v] to [3.1415]

set [radius v] to [100]
go to x: (0) y: (0)

point in direction (0 v)

point in direction (90 v)

move (radius) steps

move ((((radius) * (2)) * (pi)) / (360)) steps

turn cw (15) degrees

turn ccw (1) degrees
repeat (360)
end

forever
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.

Show Scratch solution

Extra Challenge

Extra challenge #1: Edit your program so the circle rotates over and over (use a FOREVER block under the “control” script) for any given degrees entered by the user as the input.