ambient_color

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, 1, 1]

  • color='#FFFFFF'

Examples

Create a light and set its ambient color to red.

>>> import pyvista
>>> light = pyvista.Light()
>>> light.ambient_color = 'red'
>>> light.ambient_color
(1.0, 0.0, 0.0)