ThreeJS Tutorial
Three.js is a cross-browser JavaScript library and application programming interface that uses WebGL to create and display animated 3D computer graphics in a web browser. The source code is available in a GitHub repository.
This section provides a brief overview of three.js. We'll begin by creating a scene with a spinning cube. If you get stuck and need assistance, a working example is provided at the bottom of the page.
Before using three.js, you must find a place to display it. Open your browser and save the following HTML to a file on your computer and a copy of three.js in the js/ directory.
-+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------