# Examples from pyvista.Color.float_rgba
# ======================================

# Create a blue color with custom opacity.
import pyvista as pv
c = pv.Color('blue', opacity=0.6)
c
c.float_rgba

# Create a transparent red color using a float RGBA sequence.
c = pv.Color([1.0, 0.0, 0.0, 0.2])
c
c.float_rgba

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

