Three.js: Difference between revisions

Content deleted Content added
overhaul of the "history" section; small changes and clarification elsewhere
improve description sentence under "usage" section
Line 62:
 
== Usage ==
The following code creates a scene, and adds a camera, and a cube to the scene. Next, it creates a WebGL renderer and addsappends its viewport into the document.body elementof the [[webpage]] document. Once loadedThree.js has finished loading, the cube rotates about its x- and y-axis axes.
 
<syntaxhighlight lang="javascript">