August 2018
Intermediate to advanced
528 pages
10h 58m
English
Before we move on to the next light, we're going to look closer at the THREE.Color object. In Three.js, when you need to provide a color (for example, for materials, lights, and so on.) you can pass in a THREE.Color object, or Three.js will create one from a passed-in string value, as we've seen for THREE.AmbientLight. Three.js is very flexible when parsing the input for the THREE.Color constructor. You can create a THREE.Color object in the following ways:
Read now
Unlock full access