classmethod colliderscope.Color.from_hex(val: str) Color

Instantiate Color from its hexadecimal code.

Parameters:
val : str

Hexadecimal code for the color.

Returns:

Instance from the color hexadecimal code.

Return type:

Color

Raises:

ValueError – If passed an invalid color hexadecimal code.


Last update: Jun 27, 2025