The deviceMoved() function runs when the mobile device displaying the sketch moves. In this example, the accelerationX, accelerationY, and accelerationZ values set the position and size of a circle. This only works for mobile devices.
The deviceMoved() function runs when the mobile device displaying the sketch moves. In this example, the accelerationX, accelerationY, and accelerationZ values set the position and size of a circle. This only works for mobile devices.