Build Your Own Scratch Painting App: A Fun Scratch Coding Tutorial for Kids

Scratch Painting App Tutorial Create Color Palettes, Brush Sizes & Eraser Tool

Are you looking for a fun way to introduce your child to the world of Scratch programming? Want to help them build something creative while learning block programming? Then you’re in the right place!

Scratch Painting App Tutorial: Create Color Palettes, Brush Sizes & Eraser Tool

In this tutorial, we’ll walk you through creating a painting app in Scratch—a project that combines creativity, problem-solving, and interactive design. Using Scratch’s pen extension, you’ll build an interactive drawing app complete with a color palette, brush size controls, and an eraser tool!

Watch the full tutorial here:

What Will You Learn?

By the end of this blog and video, you’ll master:

  • How to use the Pen extension in Scratch
  • How to create an interactive Scratch color palette
  • How to implement brush size controls using variables
  • How to add an eraser tool in Scratch
  • How to build your own Scratch drawing app from scratch!
  • How to use drag and drop programming blocks effectively

Whether you’re a parent, a coding instructor, or a curious learner, this Scratch project is perfect for teaching coding games for kids while fostering creativity.

Tools & Concepts Used

  • Scratch 3.0
  • Pen extension in Scratch
  • Variables (Size, Color)
  • Motion, Control, Looks, Events, Sensing, and Operators blocks
  • Custom sprites (Color buttons, eraser, and canvas)
  • Basic block programming logic

Step-by-Step Coding: Building a Scratch Painting App

Let’s break down the process into clear steps with code examples.

Step 1: Set Up Your Scratch Project

👀 Watch this section in video: Set Up Your Scratch Project

  1. Open Scratch 3.0 and create a new project.
  2. Delete the default cat sprite.
  3. Click “Choose a Sprite” → “Paint” to draw a blank canvas.
  4. Name this sprite Canvas.

Code for Canvas Sprite

💡 This is the core drawing mechanic. The pen follows the mouse and draws only when clicked.

Step 2: Add the Pen Extension

📌 Watch this short clip at Add the Pen Extension

To enable drawing, click on the “Extensions” button (bottom left) and choose the Pen extension.

Now, you’ll have access to blocks like:

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

Step 3: Create Variables

📌 See it in action: Create Variables

Go to the Variables tab and create two variables:

  • Size (controls the brush size)
  • Color (stores the selected color as text, e.g., “red”, “blue”)

Also, turn Size into a slider:

  • Right-click Size and choose slider.
  • Set min to 5 and max to 100 for better control.

Set Pen Size Using Size Variable

Step 4: Build Your Color Palette

📌 Detailed walkthrough: Build Your Color Palette

Paint several circle sprites with solid colors like red, blue, green, yellow, and black. Remove outlines.

For each, name the sprite accordingly (e.g., Red, Blue).

Example: Code for Red Palette Sprite

Repeat similar blocks for Blue, Green, Yellow, and Black.

Step 5: Set Pen Color Dynamically

📌 See it executed: Set Pen Color Dynamically

Back in your Canvas sprite, use conditionals to check which color is selected and set pen color accordingly.

Tip: Use the color picker to precisely match your palette buttons.

Step 6: Add the Eraser Tool

📌 Adding erase functionality: Add the Eraser Tool

Draw a rectangle sprite labeled “Eraser” with white text. This will reset the canvas.

Code for Eraser Sprite

Full Workflow Video

See the full process in action on YouTube:
👉 Kodex Academy – Scratch Painting App Tutorial

Enhancement Features to Try Next

Here are some project enhancement ideas to take your Scratch painting app to the next level:

1. Add a Save Feature

Scratch doesn’t support file saving, but you can encourage kids to take screenshots of their creations. Use:

2. Add a Custom Brush Type Selector

Use buttons to switch between:

  • Circle brush
  • Line brush
  • Spray brush (simulate using clones)

3. Add Color Picker Tool

Let users select any color using RGB sliders. Create three variables: Red, Green, Blue, and dynamically update the pen color using the RGB values.

4. Add Undo/Redo Feature

Though tricky, you can simulate it by storing last 5–10 drawing actions in a list, and restoring previous states.


5. Add Shape Drawing Tools

Implement shortcuts to draw:

  • Squares
  • Circles
  • Lines
    Let users choose by clicking tool icons.

Educational Benefits of This Scratch Project

By building this Scratch painting game, kids will:

  • Learn how to code in Scratch using visual logic
  • Understand event-driven programming
  • Practice looping and conditionals
  • Explore creative thinking and UI design
  • Develop real game development logic in a simplified form

It’s one of the most rewarding fun coding activities for kids that’s both entertaining and educational.

What Makes This Project Great for Scratch Coding Classes?

This painting app is ideal for teachers running Scratch coding classes. Here’s why:

  • Easy to scaffold in multiple sessions
  • Introduces core programming concepts visually
  • Allows personalization and creativity
  • Engages students with immediate visual feedback
  • Prepares kids for more advanced Scratch game tutorials

Looking for more Scratch tutorials? Check out Scratch’s official guides.

Final Thoughts

Building a Scratch painting app is a perfect blend of fun and education. Whether you’re a young coder or a mentor guiding students, this project is a great way to explore the power of drag and drop programming in Scratch.

If you enjoyed this guide, be sure to share it with fellow educators or parents who want their kids to learn Scratch programming in a joyful, creative way.

  1. Don’t forget to check out the full video tutorial by Kodex Academy here: 🎥 Watch the full Scratch Painting App Tutorial
  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