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()
https://d33wubrfki0l68.cloudfront.net/7e2fffe836c3935de62328336c278d550c30dc8d/05e03/_images/pyvista-property-specular-1_00_00.png

Visualize specular at 0.5.

>>> prop.specular = 0.5
>>> prop.plot()
https://d33wubrfki0l68.cloudfront.net/05c798012b0cd63604c5cc6be0a5f35bb7cfb503/add25/_images/pyvista-property-specular-1_01_00.png

Visualize specular at 1.0.

>>> prop.specular = 1.0
>>> prop.plot()
https://d33wubrfki0l68.cloudfront.net/b10ab8940f4c5c155e5890bb3158124c7f196fb1/3339f/_images/pyvista-property-specular-1_02_00.png