Link Search Menu Expand Document

You are browsing the documentation for v0.x.
Visit here for the newest version.

color

Either a CSS style color string, a hexadecimal value or a THREE.Color instance. The prop value is passed to THREE.Color() constructor.

Examples below set the light color to 0x4ef3a7.

<vgl-ambient-light color="#4ef3a7" />
<vgl-ambient-light color="rgb(78, 243, 167)" />
<vgl-ambient-light :color="'#4ef3a7'" />
<vgl-ambient-light :color="0x4ef3a7" />
<vgl-ambient-light :color="new THREE.Color(0x4ef3a7)" />

List of prop types