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!

Recent Posts

Ultimate Scrolling Background & Character Animation | Step-by-Step Scratch Tutorial

we’ll walk you through one of the most exciting concepts in 2D game development: the scrolling background and character animation effect. This type of animation makes your game environment feel alive...

Scratch Virtual Piano Tutorial: Build Your Own Piano in Scratch (Music Extension)

Learn step-by-step how to build a colorful, interactive virtual piano using Scratch and the Music Extension. By the end of this post, you’ll know how to build a virtual piano Scratch project, create...

Build a Text-to-Speech Translator in Scratch (Supports 45+ Languages!) – Ultimate Guide

Have you ever wanted to build your own multilingual translator that can speak in different languages? With Scratch, you can! In this exciting project, we’ll guide you through building a Text-to-Speech...

Date and Time Virtual Assistance using Text-to-Speech: Create an Alexa-Like Smart Assistant Using Scratch

Do you want to build your own digital assistant in Scratch that can respond to voice commands and share the current date and time? In this comprehensive Scratch virtual assistant tutorial, you’ll...

Mastering Scratch Motion Blocks: A Complete Tutorial for Beginners and Game Developers

One of the most powerful and foundational aspects of Scratch programming is motion blocks—used for controlling sprite movements and building dynamic, interactive projects. Motion blocks are...

Build an Interactive Odd & Even Quiz Game in Scratch: A Step-by-Step Tutorial

In this Scratch quiz game tutorial, we'll build an engaging Odd & Even numbers quiz—a classic math quiz game in Scratch that’s perfect for beginners and educators alike. You’ll guide your players...

Create Amazing Sprite Looks with Looks Blocks: A Complete Guide to Visual Sprite Effects

The “Looks” blocks in Scratch are the secret sauce behind smooth costume changes, exciting visual effects, and immersive game environments. Whether you're just starting your Scratch coding projects or...

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

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

Build a Fun “Bouncing Ball” Pong‑Style Game in Scratch – Step-by-Step Guide

Build a Fun "Bouncing Ball" Pong‑Style Game in Scratch - Step-by-Step Guide. This bouncing‑ball game combines fundamental elements: Motion & coordinate control, Sensing sprite overlaps, Variables for...

How to Make a Snowman Chase Snowflakes – Step by step Scratch Game Tutorial

Welcome to this interactive Scratch coding tutorial! If you’ve ever wanted to learn Scratch coding, build fun Scratch projects, and develop a Scratch game idea, there’s no better place to start than a...

Mastering Scratch Pen Blocks Tutorial: Draw Shapes in Scratch with Code

In this post, we'll explore how to use pen blocks in Scratch, demonstrate hands-on Scratch geometry project workshops, and empower you to draw shapes in Scratch using clean, loop-based code. Along...

How to Make a Star Trail Animation in Scratch – Easy Scratch Project Tutorial

In this detailed Scratch tutorial, you'll discover how to combine block programming logic, Scratch coding techniques, and creative flair to create animations in Scratch. By the end, you'll have a...

Build a Simple Calculator in Scratch – Step‑by‑Step Guide!

In this Scratch calculator tutorial, we take you from watching a quick demo to building a functional calculator in Scratch—complete with user prompts, number input, and basic arithmetic operations...

Even or Odd Number Finder – Scratch Game by Kodex Academy

The concept is simple but powerful. The game randomly shows numbers on the screen, and the player must decide whether the number is even or odd. They click the correct button (Even or Odd), and the...

Learn to Code with Eat Yummy Taco – A Fun Scratch Game for Kids

Get ready to dive into a deliciously engaging game that will tickle your taste buds and test your reflexes — all while learning how to code! “Eat Yummy Taco” is a beginner-friendly and fun Scratch...

How to Build an Interactive Hide and Seek Game in Scratch 3.0: A Beginner’s Guide by Kodex Academy

Every good game begins with a scene. In Scratch, this means choosing a backdrop and designing the space where the game happens. This section guides you through selecting or creating a background that...

My Blocks in Scratch Explained | A Complete Guide to Custom Blocks for Beginners (Scratch 3.0)

The My Blocks palette in Scratch is essentially your personal toolset. While the other palettes give you predefined blocks (like motion, looks, or sound), My Blocks allows you to create your own...

Understanding Block Programming: A Fun and Interactive Approach to Coding

One of the best ways to introduce kids to programming is through block programming, a method that simplifies coding concepts using visual blocks instead of writing complicated lines of code...
Scroll to Top