Skip to content

lightColor(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

lightColor(v: number[]) : this;

Sets the color of the light.

Default value: [1,1,1]

ParameterTypeDescription
valarrayThe color of the light, in the following form: [r, g, b]. Each component is a number between 0 and 1.

this