Monday, 9 May 2011

Project Three.

For this project we were told to choose a function from a given list, I picked if/else as this was a function that I used in my last project. I also think it could be an interesting function to interpret visually through a model or art piece. I have been looking at some applications on open processing and have selected three that use my chosen function to explain how they use if/else and why.

http://www.openprocessing.org/visuals/?visualID=26048


In this case if is used as a loop to restart the images of the bird flapping its wings in the sketch. Every time an image loads it adds 1 to the array, there are five images in this particular application so every five images it restarts.


Boolion (Variable)-True/False. 
Initially this code states - sm = true. Clicking makes sm untrue thus turning the function to noSmooth.


The function if in this case determines the direction of the image by specifying which way the objects in the image should travel while the mouse is over a specific piece of the sketch.

No comments:

Post a Comment