Today you will control pen hue, saturation, and brightness to create complex color patterns.
1 Warm-Up
2 Predict
3 Try It
4 Plan
5 Build
6 Fix It
7 Extend
8 Math Challenge
For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-12 · CSTA 2-AP-13 · ISTE 1.5.c · Standards
| 🎯 I can | control pen hue, saturation, and brightness to create complex color patterns |
| 🧩 New blocks | 4 blocks |
| 📝 New words | 7 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 showschange pen size byreshapes 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
foreverloop draws one short new segment every 0.05 seconds, and each new segment is the next hue. Remind students:change pen coloronly 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.
Show the picture first. Ask what will happen — everyone points or says one word.
Everyone picks an answer first. Then press the flag together.
Change one thing at a time. Run it, watch, then change the next thing.
Pairs put the cards in order before anyone opens Scratch.
Students build step by step. Walk around — help with questions, not with the mouse.
Ask: what did we want, and what did it do? Let them find it.
Fast finishers pick the next tier. Everyone else finishes their build.
Work it out on paper first. Then check it on the stage.