This tutorial shows how to draw many different patterns in Scratch using the same small set of blocks as your interactive pattern-drawing tool.It’s a great way to combine coding, math, and creativity — even if you’re new to Scratch.
It’s simple to begin. You need:
The Pen Extension (click the purple Extensions button at the bottom-left of the editor)
A basic understanding of blocks like move, turn, repeat, and variables
An interest in experimenting with shapes and code
You can also follow along with the video tutorial to see how it all comes together.
Before dragging any block, it helps to understand what drawing an equilateral shapes means. Every equilateral polygon (like a triangle, square, or hexagon) is made by repeating two things: drawing a line and a turn. The turn is based on a simple rule:
360 divided by the number of sides = the angle to turn after each side.
Using this formula as the foundation for the code allows drawing any equilateral polygon. Repeating the shape around a circle generates complex patterns.
Want to read more details? Take a look at the blog blow:
As you build the project, you’ll use several Scratch concepts that are great to understand:
This is the kind of project that shows Scratch is more than just a coding tool. It’s a great fit for:
Great job! In the next post, How to correctly use the forever loop: you’ll learn how to optimize the forever loop to avoid unnecessary redrawing while keeping the project interactive and smooth.
Join our YouTube channel for more Scratch tutorials that make programming fun and easy to follow.