int_rgb#

property Color.int_rgb: Tuple[int, int, int]#

Get the color value as an RGB integer tuple.

Examples

Create a blue color with half opacity.

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

Create a red color using an integer RGB sequence.

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