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]
, orcolor='#FFFFFF'
. Color will be overridden if scalars are specified.Examples
Set the ambient color to blue.
>>> import pyvista as pv >>> prop = pv.Property() >>> prop.ambient_color = 'b' >>> prop.ambient_color Color(name='blue', hex='#0000ffff', opacity=255)
Visualize setting the ambient color to blue with
ambient = 0.1
>>> prop.ambient = 0.1 >>> prop.ambient_color = 'b' >>> prop.plot()