Level 5

Paint the Stage

Level 5 · Chapter 6

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 6–8

Combine loops and conditions, even nested ones.

Code 2-AP-12Read the official text

Also practised: 2-AP-13

Common Core State Standards for Mathematics

Ratios & Proportional Relationships · Grade 6

Compare two amounts with a ratio.

Code 6.RP.A.3Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will control pen hue, saturation, and brightness to create complex color patterns.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-12 · CSTA 2-AP-13 · ISTE 1.5.c · Standards
🎯 I cancontrol pen hue, saturation, and brightness to create complex color patterns
🧩 New blocks4 blocks
📝 New words7 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students confuse hue (color type) with color itself. Hue 0 and hue 100 are both red in Scratch — the scale wraps.
  • Students think stamp draws a line. stamp copies the full costume image once at the current position/size/rotation — no movement needed.
  • Students forget pen down is required for drawing lines. stamp works without pen down.

🎯 Differentiation

🐢 Struggling: Build only the rainbow line first. Focus on change pen color by increment. Let them adjust the number and observe.

🚀 Advanced: Combine stamp and pen: draw a spiral AND stamp the costume at each 45-degree rotation. Overlay the two effects.

💡 During the lesson

  • Warm-UpShow a real HSB color picker (any web color tool) before opening Scratch. Ask students: "What happens to a color when you set saturation to 0?" (It becomes gray.) "What happens when brightness = 0?" (It becomes black, regardless of hue.) Note for yourself: Scratch's pen starts with saturation already high, so a fresh pen draws vivid color — you only get gray if you set saturation to 0 yourself. This primes them for the Try It section.
  • Try ItRun both examples live. For the first, ask: "What happens if you set saturation to 0 before the loop?" (The vivid rainbow turns into a gray gradient.) For the stamp loop (repeat 12 · stamp · turn right 30), ask: "Why do we set size to 20%?" (With step 0 the cat never moves, so all 12 stamps pile up on one spot and make a pinwheel — a smaller cat keeps it readable.) This builds parameter intuition.
    The second experiment is the key insight: setting saturation to 0 makes all hues look identical (gray). Hue only shows color when saturation is above 0 — and Scratch's pen starts saturated, so you must deliberately set it to 0 to lose the color. The third experiment shows change pen size by reshapes the stroke (a taper), separate from color.
  • PlanEach script runs on its own sprite (duplicate the Cat twice), because one sprite has only one position and one pen — three scripts on the same sprite would pull it in three directions. The spiral takes about 10 seconds; the stamp ring is quick. The third script never stops — its forever loop draws one short new segment every 0.05 seconds, and each new segment is the next hue. Remind students: change pen color only colors NEW pen marks, not marks already on the stage. The visible shifting color comes from drawing new pixels, not from recoloring old ones.
  • BuildStep 7 may surprise students — both scripts run from the same "when flag clicked" and execute simultaneously. If students only see the spiral and no stamps (or vice versa), check that each script is on its own Cat sprite. Common error: the stamp script was accidentally placed on the Stage instead of a Cat.