Turbulence-Make Something Move

The function random() and the variable pmouseY were used to create the motion effects used in my code for “Turbulence”. The object is perceived as falling towards the orange corner because of the fluctuations of the light field propelling “towards” the house. Random() was used to create a lot of the variances in positioning and opacity, and pmouseY allows for the user to test the turbulence the object experiences as the user moves their cursor up and down. At y=200 is the “stable” spot, moving up or down from there increases the instability.