

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
CSS styling for school going and basic
Typology: Summaries
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Three.js is a JavaScript library that makes it easy to create 3D graphics using WebGL.
You start by creating a scene, camera, and renderer. Then, you add objects, lights, and render them.
var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000); var renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); document.body.appendChild(renderer.domElement);