Exercise 4: Objects
Using one of the templates below, create a sketch using a class and objects. Modify and extend the Circle class with new variables and functions.
Circles (zip): uses a custom class to create a "Circle" object type.
CirclesArrayList (zip): Demonstrates using an ArrayList instead of an array to dynamically add & remove objects.
Explode (zip): A simple explosion of Circles that demonstrates using a class within another class.
- ExplodeMulti (zip): Uses class inheritance to generate different explosion types using different Circle class types.
For instance, if you want to change the size of the Circles when pressing the mouse, you could add a new Circle function called
randomSize() and then call it inside the main sketch's
We will present in a small exhibition next class.
Due date: 5/09