Rendering acceelerometers with core graphics