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