3D Lingo Dictionary > A-B > ambientColor |  |

ambientColor

Syntax

    member(whichCastmember).ambientColor

Description

3D cast member property; indicates the RGB color of the default ambient light of the cast member.

The default value for this property is rgb(0, 0, 0). This adds no light to the scene.

Example

This statement sets the `ambientColor` property of the cast member named Room to rgb(255, 0, 0). The default ambient light of the cast member will be red. This property can also be set in the Property Inspector.

    member("Room").ambientColor = rgb(255, 0, 0)

See also

`directionalColor`, `directionalPreset`, `ambient`