It's Sean!

UK freelance journalist, author
and writer Sean McManus

Printed from © Sean McManus.
Home > Books > Scratch Programming in Easy Steps > 10 block demos > How to draw a circle

How to draw a circle in Scratch

Sean McManus, author of Scratch Programming in Easy Steps and Cool Scratch Projects in Easy Steps, shows you how to draw a multicoloured circle using the pen in Scratch

If you saw my 9-block program to draw a polygon in Scratch, you might be wondering how to draw a circle in Scratch.

The answer is to think of a circle as a shape with 360 sides, and 360 angles of 1 degree, like this:

when green flag clicked / go to x: 0 y: 0 / clear / pen down / set pen size to 20 / repeat 360 / move 1 steps / turn 1 degrees / change pen color by 1 / end repeat

When using the polygon program, you might have noticed that the more sides you have, the more like a circle it looks. In practice, you don't need as many as 360 sides to make it look like a circle on the Scratch screen. You can have 90 sides, move 4 steps, and turn 4 degrees to create a circle more quickly, for example.

To increase the size of the circle, change the number of steps the sprite moves.

Feel free to share that program card on your social networks, or to use it in your classrooms or Code Clubs!

Try the program

Find out more...

Find more 10 block Scratch demos here. For more information on my Scratch books and more bonus content, visit the Scratch Programming in Easy Steps and Cool Scratch Projects in Easy Steps homepages.

Books by Sean McManus

Scratch Programming in Easy Steps

Scratch Programming in Easy Steps

Raspberry Pi For Dummies

Raspberry Pi For Dummies

Learn to program with the Scratch programming language, widely used in schools and colleges.

Set up your Pi, master Linux, learn Scratch and Python, and create your own electronics projects.

Coder Academy

Coder Academy

Cool Scratch Projects in Easy Steps

Cool Scratch Projects in Easy Steps

Learn to make games and other programs in Scratch 2.0, and make a web page in HTML, with this highly interactive book for 7-10 year olds.

Discover how to make 3D games, create mazes, build a drum machine, make a game with cartoon animals and more!

More books

Recommended articles

Stylised coloured photo of a synth

Discover my music and home recording articles

Interested in starting home recording? Follow me as I start recording, using instruments such as the Novation MiniNova and Korg Kaossilator, and share my synth and sample-based music online.

Scratch cat and rainbow circle

10-block demos for Scratch programming

Lots of people of all ages are learning to program with Scratch. Discover some useful tricks and techniques in my 10-block Scratch demos, including special effects you can drop into your games.

Paper Raspberry Pi case

Download free book chapters and more!

Download a free case for your Raspberry Pi, and free chapters from my books about the Raspberry Pi, Scratch, web design and more!

©Sean McManus.