Light.ambient_color#
- property Light.ambient_color[source]#
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'
Examples#
Download Python source code | Download Jupyter notebook
Create a light and set its ambient color to red.
>>> import pyvista as pv
>>> light = pv.Light()
>>> light.ambient_color = 'red'
>>> light.ambient_color
Color(name='red', hex='#ff0000ff', opacity=255)