pyvista.Light.switch_on#

Light.switch_on()[source]#

Switch on the light.

Examples

Create a light, switch it off and switch it back on again.

>>> import pyvista as pv
>>> light = pv.Light()
>>> light.on = False
>>> light.switch_on()