pyvista.Color.opacity

Contents

pyvista.Color.opacity#

property Color.opacity[source]#

Return the opacity of this color in the range of (0-255).

Examples

>>> import pyvista as pv
>>> color = pv.Color('r', opacity=0.5)
>>> color.opacity
128
>>> color
Color(name='red', hex='#ff000080', opacity=128)