Link to the project: https://editor.p5js.org/jiawen21/sketches/or5Rf1MMU
Description: It is an object floating in the galaxy and then if you clock o the object or anywhere on the canvas, it will explode into different colors of particles.
Video of my project: Screen Recording 2022-10-31 at 10.24.33 PM
Reflection:
- Object-Oriented Programming helps organizes software design around data, or objects, rather than functions and logic. The class is part of object-oriented programming. A class is a way of organizing information about a type of data so the person can reuse the elements many times without retyping the code. An instance is an object that belongs to a class. When instance of a class is coded, we can allocate the memory and the rest so an object can be created based on the class.
- OOP allows code to be reusable and makes it more simple for programming. For example, when the class can be instantiated once a call has been made, it can be used in any part of the application. We can reuse the class over and over again.
- The project that I created is a circle in the middle and then when you click on it, it will explode into many colors of particles. Another way to make it explode is when the mouse is pressed and you click anywhere on the canvas, the object will explode into many particles. The methods that I used are explode() and reappear().
- What I find it challenging is figuring out what methods I could apply and how to apply them to my program such as what function I need in order for the methods to work.