_LightingConfig.ambient#
- property _LightingConfig.ambient: float[source]#
Return or set the ambient value.
This is the default value of
pyvista.Property.ambient, which documents the valid range.
Examples#
Download Python source code | Download Jupyter notebook
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