Use a QR code scanner with a mobile device to scan this code, and start moving the Earth!
Putting it together
This actually was a classic case of stacking existing components like lego.
- The DeviceOrientation event is part of the W3C standards, and while it’s still an experimental feature, many browsers already support it. The documentation even helps you out converting Euler angles (the event’s representation of the device orientation) to quaternions, which are generally useful when dealing with rotations and orientations.
- I used qrcode-generator to generate the QR code.