Color.int_rgb#
Examples#
Download Python source code | Download Jupyter notebook
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)