property Light.ambient_color#

Return or set the ambient color of the light.

When setting, the color must be a 3-length sequence or a string. For example:

  • color='white'

  • color='w'

  • color=[1.0, 1.0, 1.0]

  • color='#FFFFFF'


Create a light and set its ambient color to red.

>>> import pyvista
>>> light = pyvista.Light()
>>> light.ambient_color = 'red'
>>> light.ambient_color
Color(name='red', hex='#ff0000ff')