How does the bubble simulation work?

How does the bubble simulation work?

What's the purpose of the block labelled "Bubble" next to the Stage?

thanks

Mike

Where did you find this project?

It's an exercise in a AP Comp Sci Prin class. I found the directions. 'Bubble' is a custom icon.