Create Your Own Virtual Flower Garden

Objective

After completing this lesson, you will be able to operate the Snap! development environment and use loops to repeat parts of your code certain number of times while programming a virtual flower garden.

Content

Video summary:

The video introduces Snap! and shows how to open the editor and use its three panes (palette, scripting area, stage). It walks through creating a custom costume petal, adjusting its rotation center, and stamping petals in a loop to form flowers. The instructor generalizes the process into an algorithm (repeat n times, stamp, turn 360/n) to make any n-petaled flower, then builds a randomized flower field by placing flowers at random positions, switching costumes for variety, and applying color effects.

Key points:

  • Snap! editor basics: palette (live blocks), scripting area (drag-and-drop), and stage (program output).
  • Create and edit costumes, set rotation center so petals rotate around their tip.
  • Use loops to execute parts of your program repetitively, in this case to automatically stamp a flower out of individual petals.
  • Build a flower field with random positions, multiple costumes, and graphic effects for variety.