# Examples from pyvista.Color.hex_rgb
# ===================================

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

# Create a red color using an RGB hexadecimal value.
c = pv.Color('0xff0000')
c
c.hex_rgb

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

