Light.diffuse_color#
- property Light.diffuse_color[source]#
Return or set the diffuse 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#
Download Python source code | Download Jupyter notebook
Create a light and set its diffuse color to blue.
>>> import pyvista as pv
>>> light = pv.Light()
>>> light.diffuse_color = (0.0, 0.0, 1.0)
>>> light.diffuse_color
Color(name='blue', hex='#0000ffff', opacity=255)