pyvista.Property.specular_color#
- property Property.specular_color: Color[source]#
Return or set the specular color of this property.
Either a string, RGB list, or hex color string. For example:
color='white'
,color='w'
,color=[1.0, 1.0, 1.0]
, orcolor='#FFFFFF'
.Examples
Set the specular color to blue.
>>> import pyvista as pv >>> prop = pv.Property() >>> prop.specular_color = 'b' >>> prop.specular_color Color(name='blue', hex='#0000ffff', opacity=255)
Visualize setting the specular color to blue with
specular = 0.2
>>> prop.specular = 0.2 >>> prop.specular_color = 'r' >>> prop.plot()