# Examples from pyvista.Color.float_rgb
# =====================================

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

# Create a red color using a float RGB sequence.
c = pv.Color([1.0, 0.0, 0.0])
c
c.float_rgb

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

