pyvista.plotting.themes._LightingConfig.ambient

pyvista.plotting.themes._LightingConfig.ambient#

property _LightingConfig.ambient: float[source]#

Return or set the ambient value.

When lighting is enabled, this is the amount of light in the range of 0 to 1 that reaches the actor when not directed at the light source emitted from the viewer.

Examples

Set the global ambient lighting value to 0.2.

>>> import pyvista as pv
>>> pv.global_theme.lighting_params.ambient = 0.2
>>> pv.global_theme.lighting_params.ambient
0.2