pyvista.Property.specular#
- property Property.specular: float[source]#
Return or set specular.
Default
pyvista.plotting.themes._LightingConfig.specular
.Specular lighting simulates the bright spot of a light that appears on shiny objects. Must be between 0 and 1.
Examples
>>> import pyvista as pv >>> prop = pv.Property() >>> prop.specular = 0.2 >>> prop.specular 0.2
Visualize default specular light.
>>> prop.specular = 0.0 >>> prop.plot()
Visualize specular at
0.5
.>>> prop.specular = 0.5 >>> prop.plot()
Visualize specular at
1.0
.>>> prop.specular = 1.0 >>> prop.plot()