Click screen to generate a flower.
Reflection I wanted to generate a variety of different flowers from a simple set of rules and I wanted them to be animated as they were being drawn onto the screen. To accomplish this, I started with a simple flower shape and set it to hidden at the start. When the stage is clicked, the sprite is cloned and a process begins that creates a randomly generated flower. Two loops are used, one for creating the size and colors, while the other is used to animate the flower as it grows. Once an animation completes, the image is stamped. Once then entire process completes, the clone is deleted to prevent the project from slowing down. If I spent more time on this I would have created custom flower graphics.