pyvista.plotting.themes._LightingConfig.diffuse

pyvista.plotting.themes._LightingConfig.diffuse#

property _LightingConfig.diffuse: float[source]#

Return or set the diffuse value.

This is the scattering of light by reflection or transmission. Diffuse reflection results when light strikes an irregular surface such as a frosted window or the surface of a frosted or coated light bulb. Must be between 0 and 1.

Examples

Set the global diffuse lighting value to 0.5.

>>> import pyvista as pv
>>> pv.global_theme.lighting_params.diffuse = 0.5
>>> pv.global_theme.lighting_params.diffuse
0.5