float_rgb#

property Color.float_rgb: Tuple[float, float, float]#

Get the color value as an RGB float tuple.

Examples

Create a blue color with custom opacity.

>>> import pyvista
>>> c = pyvista.Color("blue", default_opacity=0.6)
>>> c
Color(name='blue', hex='#0000ff99')
>>> c.float_rgb
(0.0, 0.0, 1.0)

Create a red color using a float RGB sequence.

>>> c = pyvista.Color([1.0, 0.0, 0.0])
>>> c
Color(name='red', hex='#ff0000ff')
>>> c.float_rgb
(1.0, 0.0, 0.0)