Canvas 2D Web Apps/Acceleration

In HTML5, changes of the orientation and acceleration of a device can be monitored with the help of  and   events. W3C has published the DeviceOrientation Event Specification. In the Mozialla Developer Network, see the event reference for deviceorientation and devicemotion. Apple developers should consult the DeviceOrientationEvent and the DeviceMotionEvent class reference in Apple's Safari Developer Library.