AmbientLightColor Property

The AmbientLightColor property returns or sets the ambient light color of a surface. Returns an SrfColor value.

Syntax

object.AmbientLightColor

object. AmbientLightColor = Color

Parameter

Type

Description

Color

srfColor

required

Remarks

Use the enumeration [srfColorRed], RGB value [RGB(255,0,0)], or number [255] to set a color.

Example 1

This example shows how to return the ambient light color.

Debug .Print "Ambient light color = "; MapFrame.AmbientLightColor

Example 2

This example shows how to set the ambient light color to green using RGB values.

MapFrame.AmbientLightColor = RGB(0,255,0)

Used by: MapFrame object

See Also

Lighting Page - 3D Surface