exploding shoe

exploding shoe,

this is based on a sample that was found on processing.org that manipulates the image pixels z position according to its brightness. the sample was adapted to brake the shoe images down in to squares that represent pixels because the image are to large to do it at pixel level and the square size had to change according to how much we wanted to explode the image.

The idea was similar to the previous one but instead of a new image sliding in i wanted a new image to explode in, this didn't happen gust enough.

similar to the other experiments it creates a list of images, draw uses the mouse x position to work out the amount of movement we want, in this case its the explosion. the main difference with this one is that it introduces the idea of a class. a class allows you to capture all the properties and functions around the shoe.

each shoe has a draw function and explode function. draw just draws the image and explode draws the image as a series of squares that represent a range of pixels drawn as a square where the z position is a factor of the mouse position x.