With animation you can create anything you can think of: real or the surreal, simple or complex. It can tell a story or be completely abstract, or anywhere in between. When HTML5 was released it contained a canvas element that can be used for 2D and 3D animation.
In this chapter you will be creating a game, with a Joystick attached to an Arduino, which is used as the game controller. The 3D graphics in this chapter are created and manipulated using a JavaScript library called Three.js, and data from an Arduino is used to manipulate the graphics.
Animation
The smoothness of an animation ...