# Examples from pyvista.Plotter.add_light
# =======================================

# Create a plotter that we initialize with no lights, and add a
# cube and a single headlight to it.
import pyvista as pv
pl = pv.Plotter(lighting='none')
_ = pl.add_mesh(pv.Cube())
light = pv.Light(color='cyan', light_type='headlight')
pl.add_light(light)
pl.show()

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

