ICM Week5

After learning array, I can try a bunch of new effects with only bubbles.

This week, I tried a sketch using array and class. And this is what I did this week.

This is my code:

It looks simple, and that’s why we are using array and class, which would make our code more readable.

To control bubbles, I mapped deviation of bubbles’ original positions to the point (width/2, height) with the rate of bubbles’ disappearing. Also, to make bubbles continuously coming up, I set the line that when the radius smaller than 0, bubbles reappear at their original position.

To make bubbles fade properly, I tries several times adjusting the number in code, and finally, I got the effect that I want.




Leave a Reply

Your email address will not be published. Required fields are marked *