int_rgba#

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

Get the color value as an RGBA 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_rgba
(0, 0, 255, 128)

Create a transparent red color using an integer RGBA sequence.

>>> c = pyvista.Color([255, 0, 0, 64])
>>> c
Color(name='red', hex='#ff000040')
>>> c.int_rgba
(255, 0, 0, 64)