just some thoughts about software and other things I like

Device Orientation Events

The source code for this example is on Github.

Using d3.js along with an event handler we can respond to the deviceorientation event with a listener to translate the values to RGB. Try the example out on your ipad.