Create Stunning Geometric Art in Scratch | Draw Art + Math Combo Patterns – Step-by-Step Coding

Create Stunning Geometric Art in Scratch Draw Art + Math Combo Patterns

Introduction: Create Stunning Geometric Art in Scratch

Welcome to an exciting journey where coding meets creativity! In this comprehensive Create Stunning Geometric Art in Scratch tutorial, you’ll learn how to draw fascinating geometric shapes and bring them to life using vibrant colors, smart loops, and the powerful pen extension tool in Scratch. Whether you’re just starting out with Scratch programming for beginners or looking to level up your skills with some artistic inspiration, this guide is perfect for you.

Created by Omaansh Aggarwal from Kodex Academy, this tutorial walks you through step-by-step how to combine logic and artistry to generate stunning geometric art. The video shows how to use loops in Scratch, control angles and movement, and draw patterns that are both visually appealing and mathematically intriguing. This is an ideal project for those interested in Scratch creative coding, STEM art, or integrating math into programming.

By following this tutorial, you’ll gain hands-on experience with:

  • Drawing complex Scratch geometric shapes
  • Using count-controlled loops effectively
  • Learning how the pen extension can transform sprites into drawing tools
  • Exploring coding geometric patterns in Scratch using simple nested loops
  • Creating a dynamic Scratch shapes animation

And the best part? You don’t need any prior experience. All you need is curiosity and a desire to explore the artistic side of programming.

Watch the full video tutorial here: Create Stunning Geometric Art in Scratch | Draw Art + Math Combo Patterns

This project is perfect for school coding clubs, STEAM learning activities, or even weekend fun with family and friends. Not only will you master Scratch fundamentals, but you’ll also walk away with a digital masterpiece you created entirely with code.

So if you’re looking for Scratch coding ideas, or just want to try something fun and visual with loops, motion, and color — let’s dive in and unlock the magic of Scratch pen tool drawing and geometry-based animations. Let’s code some art!

Step-by-Step Coding: Create Stunning Geometric Art in Scratch

Step 1: Set Up the Scratch Environment

1. Create a New Project

2. Paint a Custom Backdrop

  • Click on the Stage → Backdrops tab.
  • Choose “Paint” to create a new backdrop.
  • Use the Fill Tool to select a black background.
  • Convert it to Bitmap Mode and click once to apply.

Step 2: Add a Drawing Sprite (Pencil)

  1. Click “Choose a Sprite” → Search for “Pencil” (or draw your own).
  2. Customize the costume if needed.
  3. This sprite will act like a virtual pen.

Step 3: Add the Pen Extension

  1. Click the “Extensions” button (bottom left).
  2. Select the Pen Extension.

You’ll now have access to blocks like:

  • pen down
  • pen up
  • set pen color
  • set pen size
  • erase all

Step 4: Start with Basic Pen Setup

Use this block sequence to get started:

Explanation:

  • erase all clears the canvas.
  • Pen size and color are configured for drawing.
  • Sprite is placed at a starting coordinate.
  • Direction 90 points the sprite to the right.

Step 5: Draw a Polygon Using Loops

Let’s draw a hexagon (6-sided shape) using a nested repeat loop.

What’s Happening?

  • Inner loop draws a hexagon (6 equal sides, 60° each).
  • Outer loop repeats the hexagon drawing at different angles, forming a circular pattern.
  • turn 24 between each shape = evenly spaced rotation (360°/15)

You can try different values like:

  • repeat 10 outer, repeat 5 inner for pentagon patterns
  • Change move steps to vary size

Step 6: Add More Shapes (Multi-Color)

Duplicate the previous code and modify:

Repeat for more shapes using these settings:

ColorPosition (X, Y)Outer RepeatInner RepeatStep SizeTurn Angle
Pink75, 501553024°
Red-175, 632044018°

⚠️ Important Tip: Always add pen up before moving the sprite to a new position to avoid unwanted lines.

Step 7: Show All Shapes on One Canvas

To see all shapes together:

  • Remove all erase all blocks except one at the beginning of your code (under when green flag clicked).
  • This ensures shapes aren’t cleared between drawing.

If a line appears between shapes:

  • Add pen up before go to block
  • Then use pen down before drawing starts

Reset with Erase All on Flag

This ensures the canvas is cleared every time you start the program.

Complete Code Summary

Here’s a compact version to draw one complete shape:

Experiment Ideas:

  • Try repeat 36 and turn 10° for spirograph-style patterns.
  • Use pick random color blocks for vibrant animations.

Enhancements (Bonus Ideas)

a. Animated Drawing

Add wait 0.1 seconds inside inner loop for drawing effect:

b. Random Colors

c. User-Controlled Shape Count

Ask the user for number of sides:

Then replace repeat 6 and turn 60 degrees with:

d. Freehand Drawing Mode

Create a mini paint app:

Useful for Scratch creative coding and interactive animations.

e. Parameterize via Custom Blocks (My Blocks)

Define reusable drawing blocks:

Incorporate variables for ultimate flexibility.

f. Color & Size Dynamics with Variables

Use sliders/variables to animate pen attributes:

Let users control brush styles dynamically.

g. Complex Patterns with Nested Loops

Build snowflakes or fractal designs:

Conclusion: Unlocking Creativity with Scratch Coding and Geometric Art

Through this step-by-step Scratch tutorial, you’ve just explored how to combine math, logic, and creativity to generate dynamic geometric art using Scratch’s Pen extension and count-controlled loops. Whether you’re a complete beginner or a young coder discovering the magic of shapes, this project helps solidify fundamental programming concepts in a fun and visual way.

You learned how to:

  • Use loops (repeat blocks) to draw patterns efficiently
  • Apply pen controls to manage drawing behaviors and aesthetics
  • Avoid unwanted lines using pen up and pen down
  • Position sprites for organized designs
  • Use color, shape, and motion creatively

This project is more than just about drawing—it’s about thinking like a programmer:

  • Breaking down tasks into logical steps
  • Using repetition and modularity to create patterns
  • Experimenting with variables and user inputs
  • Understanding the connection between math (angles, geometry) and visual design

Call to Action

  1. Don’t forget to check out the full video tutorial by Kodex Academy here: Create Stunning Geometric Art in Scratch | Draw Art + Math Combo Patterns with Kodex Academy!
  2. Like, comment & share the video
  3. Visit kodexacademy.com
  4. subscribe to the Kodex Academy YouTube channel for deeper Scratch content.

Happy coding with Kodex Academy! 🚀

Learn More with Kodex Academy

At Kodex Academy, we’re passionate about helping students learn coding in creative ways. This project teaches more than Scratch—it empowers young minds to build tools that work in the real world.

Explore more:

Stay updated with new content, free tutorials, and coding challenges!

Further Reading & Links

Recent Posts

How to Make a Math Racing Game in Scratch | Game Concepts and Complete Tutorial

In this tutorial, you’ll learn to build a Math Racing Game in Scratch. Players solve math problems to move their character forward; wrong answers benefit the opponent. It’s a race of speed, accuracy...

How to make Memory Skill Game in Scratch | Card Matching Game in Scratch – Part 2 | Step-by-Step Coding

In this tutorial you'll learn how to make memory skill game in Scratch / card matching game in Scratch. This is a great beginner‑to‑intermediate project for scratch tutorial game, scratch programming...

How to make a Card Matching Game in Scratch | Memory Skill Game in Scratch – Part 1 | Step-by-Step Coding

In this Scratch tutorial, we'll walk you through how to make a card matching game in Scratch, also known as a memory game or skill game. This is a popular beginner project that introduces essential...

Create a Quiz Game in Scratch | Spelling Test in Scratch | Picture Identification in Scratch

Want to make learning spelling fun, visual, and interactive? In this Scratch tutorial, you'll learn how to make a spelling quiz game in Scratch using picture identification, text-to-speech, and...

How to make a Double Jump Game in Scratch | Platformer game in Scratch | Step by Step Coding

How to make a Double Jump Game in Scratch. Scratch is a fantastic platform for beginners to learn programming by making games, animations, and interactive stories. Among the many kinds of games...

How to Use Variables in Scratch | Variable Blocks in Scratch | Complete Tutorial

Introduction: Variable Blocks in Scratch Whether you’re just getting started with Scratch programming or looking to take your projects to the next level, understanding variables and lists is...

How to Make Earth Revolve Around the Sun in Scratch: A Complete Tutorial & Enhancements

Animating Earth revolving around the Sun is a classic beginner/intermediate Scratch animation project. It combines trigonometry (sine & cosine), variables, loops, and visual scripting. Kids can learn...

How to Make a Game in Scratch | Snake Game in Scratch | Step-by-Step Game Coding

In this tutorial, we’ll build a Snake Grid style game in Scratch step by step (very similar to the Kodex Academy example). By doing this, you’ll cover many of the core Scratch building blocks. We will...

How to Use Operator Blocks in Scratch | Full Guide with Live Coding & Examples

One of the most powerful features in Scratch is its Operator Blocks — essential for handling math operations, logic comparisons, and string manipulations...

How to Create a Thirsty Crow Story in Scratch | Animation Story in Scratch for Kids

In this tutorial, you’ll learn how to create the classic “Thirsty Crow” story in Scratch, using simple animation, voice, and sprite actions. This is a perfect project for kids who are new to coding...

How to Create a Dodge Ball Game in Scratch: A Complete Step-by-Step Tutorial for Beginners

This step-by-step tutorial will guide you through how to create a Dodge Ball game in Scratch from scratch! In this game, you’ll control a character trying to dodge falling balls, earn points, and...

How to use Sensing Blocks in Scratch | Scratch programming for beginners | Live Coding with Examples

In today’s session, we’re diving deep into one of the most powerful features of Scratch — Sensing Blocks. These blocks allow your projects to interact with the world, detect touches, respond to...

Build an Egg Shooting Game in Scratch: Step-by-Step Coding | Complete Guide for Beginners

Learn how to create a fun, interactive shooting game in Scratch with this detailed tutorial inspired by classic arcade games. Perfect for kids and beginners looking to dive into Scratch programming!...

How to Make a Maze Game in Scratch | Step by Step Coding | Full Tutorial & Enhancements

Introduction: Why Build a Maze Game in Scratch? If you’re looking for a Scratch beginner project idea that’s fun, interactive, and educational, then building a maze game in Scratch is the...

Scratch Control Block Tutorial: Full Guide with Loops, Conditions, Cloning & Code Examples

“Control blocks” in Scratch are those blocks (from the Control category) that manage the flow of your script: when things happen, how many times they happen, making decisions, repeating actions...

How to Create a Car Racing Game in Scratch – Part 2 – Step-by-Step Coding

Welcome to your ultimate guide on how to make a car racing game in Scratch—a step‑by‑step tutorial. You'll learn Scratch game development techniques, see actual code blocks, and discover enhancements...

How to Make a Hurdle Jumping Game in Scratch – Build a Fun Hurdle Runner with Score & Win Screen

Are you ready to create your very own hurdle jumping game in Scratch—just like the iconic Chrome Dino or Super Mario? 🎮 Whether you're new to Scratch or just looking for your next fun project, this...

How to Create a Car Racing Game in Scratch – Part 1 – Step-by-Step Coding

In this Scratch car racing game tutorial, we’ll walk you through how to create a fully functional, visually exciting, and incredibly fun car racing game using Scratch. In this blog, we’ll cover: How...
Scroll to Top