Title: Bubbles in sea
Link: https://editor.p5js.org/LafouCC/sketches/qD0kA5OV3
Description: This project is a developmental project of project A, as it creates the visual effect of the bubbles in the sea interactive to the user’s clicking position.
Video:
Reflections:
- What is Object-Oriented Programming (OOP), a Class and an Instance of the Class?
OPP is a kind of programming that is all about objects, and in p5 js, everything inside the oop tends to be modular. “A class” is a like a blueprint, creating a model for codes to fit in. “An instance of the class” is like a building built according to the blueprint.
- Discuss the effectiveness of OOP. When is OOP useful? In what way can it be utilized?
OOP is useful when the code is designed to create an object, and it can be easily utilized for different purposes and it can be reused easily.
- Describe the objects you have created. What properties and methods were implemented? What kind of behaviors did you create by manipulating them?
I created a bubble-like particle class. I used methods: update(), and display(). The bubbles’ transparency and size will change according to the location (time).