This week we converted an images pixels into particles which when we press any key on the keyboard, the image explodes into particles and falls down.
We did this by creating an array list which is a store that will hold all the classes we make if we assign it to the list. By creating a separate class we can call that function multiple times without having to type it all out repeatedly. This is useful for a lot of things like particles. When the particles are added to the ArrayList they are stripped off their interface so we use the class name in parenthesis to reattach the interface to the objects data. When the mouse button is pressed we call update on the particle system to reset the image. To separate the image to pixels and draw each particle to screen by using p.draw.