pyvista.Property.ambient_color#

property Property.ambient_color: Color[source]#

Return or set the ambient color of this property.

Either a string, RGB list, or hex color string. For example: color='white', color='w', color=[1.0, 1.0, 1.0], or color='#FFFFFF'. Color will be overridden if scalars are specified.

Examples

Get the default ambient color and visualize it with ambient = 0.5.

>>> import pyvista as pv
>>> prop = pv.Property()
>>> prop.ambient_color
Color(name='lightblue', hex='#add8e6ff', opacity=255)
>>> prop.ambient = 0.5
>>> prop.plot()
../../../_images/pyvista-Property-ambient_color-1_00_00.png

Visualize red ambient color.

>>> prop.ambient_color = 'red'
>>> prop.plot()
../../../_images/pyvista-Property-ambient_color-1_01_00.png