Module 3: Flower Generator
| Course: Scratch Programming | Level: Module 3 | Project 31 of 35 |
Official Raspberry Pi Project
This lesson is based on the official Raspberry Pi Foundation project. Open it alongside this guide to access the starter project, step-by-step instructions and community remixes.
### [🍓 Open "Flower Generator" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/flower-generator)
How to use it: Click the link above, then click See Inside on the Scratch project to explore the finished version. Use Remix to get your own copy to edit.
What You Will Build
Build a system to generate flower patterns using the Pen extension and loops.
What You Will Learn
By the end of this project you will be able to:
- Use Events blocks to start scripts and respond to clicks
- Combine Motion, Looks and Sound blocks to create behaviours
- Use variables to track game state and scores
- Apply the specific Scratch concepts introduced in Module 3
You Will Need
| Item | Details |
|---|---|
| 🌐 Browser | Any modern browser — Chrome, Firefox or Edge |
| 🔶 Scratch account | Free at scratch.mit.edu |
| ⏱️ Time | Approximately 30–45 minutes |
| 📋 Starter project | Available via the Raspberry Pi link above |
Step-by-Step Guide
- Enable the Pen extension.
- Create a small petal sprite.
- Use a
repeat [8]loop to stamp the petal 8 times, rotating360/8 = 45degrees each time. - Add a colour change per petal:
change pen color by [10]per loop iteration. - After drawing one flower, move to a new random position and draw another.
- Add a slider for petal count (4–16) and a slider for petal size.
- Add a background colour picker.
- Add animation so each petal appears with a growing effect.
- Add a
clearbutton to erase and start a new field. - Add seasonal themes: spring (small flowers), summer (large sunflowers).
Extension Challenges
Try these after completing the main project:
- Add stem and leaf sprites beneath each flower using the pen.
- Make flowers sway using a sine wave animation.
- Export flowers by remixing and sharing generated arrangements.
Reflection Questions
- Which Scratch blocks did you use most in this project?
- What would you add or change if you had more time?
- How could you reuse the ideas from this project in a different context?
Share Your Work
When your project is complete, click Share in Scratch and post the link to your class or the Techbase community.
| ← Back to Scratch Course | Next: Lesson 32 → |