pyvista.Color.strip_hex_prefix#

static Color.strip_hex_prefix(h: str) str[source]#

Strip any '#' or '0x' prefix from a hexadecimal string.

Parameters:
hstr

Hexadecimal string to strip.

Returns:
str

Stripped hexadecimal string.