specular_color#

property Light.specular_color#

Return or set the specular color of the light.

When setting, the color must be a 3-length sequence or a string. For example:

  • color='white'

  • color='w'

  • color=[1.0, 1.0, 1.0]

  • color='#FFFFFF'

Examples

Create a light and set its specular color to bright green.

>>> import pyvista as pv
>>> light = pv.Light()
>>> light.specular_color = '#00FF00'
>>> light.specular_color
Color(name='lime', hex='#00ff00ff')