vtk_c3ub#

property Color.vtk_c3ub: vtkmodules.vtkCommonDataModel.vtkColor3ub#

Get the color value as a VTK Color3ub instance.

Examples

Create a blue color with half opacity.

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