pyvista.Color.vtk_c3ub#

property Color.vtk_c3ub: vtkColor3ub[source]#

Get the color value as a VTK Color3ub instance.

Examples

Create a blue color with half opacity.

>>> import pyvista as pv
>>> c = pv.Color("blue", default_opacity=0.5)
>>> c
Color(name='blue', hex='#0000ff80', opacity=128)
>>> c.vtk_c3ub
vtkmodules.vtkCommonDataModel.vtkColor3ub([0, 0, 255])