# Examples from pyvista.Color.hex_rgba
# ====================================

# Create a blue color with half opacity.
import pyvista as pv
c = pv.Color('blue', default_opacity='#80')
c
c.hex_rgba

# Create a transparent red color using an RGBA hexadecimal value.
c = pv.Color('0xff000040')
c
c.hex_rgba

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

