Balloon Party

Demo

Goal: Learn how to add force vectors in p5 and create an inflating balloon simulation.

To reinforce my understanding of vectors, I went back and improved my rocketship sketch I made last week. My stars are working now! (Thank you, Ellen :D) I added different opacities to the stars and moved the rocketship in front of the stars.

This week I created a balloon party sketch where users can click on the canvas and inflate helium balloons of different sizes [masses]. Then, the balloon will float upwards according to the physics of its mass, surface area and the drag force of the air. Every time a new balloon is inflated, a new color is generated. I added a living room image from freepik.com and balloon sounds from freesound.org to make the sketch more playful. This weekend I celebrated my little cousin’s 4th birthday so it inspired me to play with the idea of balloons!

Overall, I had a lot of fun making this sketch and I want to continue practicing how to add additional forces to the sketch like wind.

One thought on “Balloon Party

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s