pyvista.Color.int_rgb#

property Color.int_rgb: tuple[int, int, int][source]#

Get the color value as an RGB integer tuple.

Examples

Create a blue color with half opacity.

>>> import pyvista as pv
>>> c = pv.Color("blue", opacity=128)
>>> c
Color(name='blue', hex='#0000ff80', opacity=128)
>>> c.int_rgb
(0, 0, 255)

Create a red color using an integer RGB sequence.

>>> c = pv.Color([255, 0, 0])
>>> c
Color(name='red', hex='#ff0000ff', opacity=255)
>>> c.int_rgb
(255, 0, 0)