Color.from_unknown

classmethod Color.from_unknown(unknown)[source]

Construct a color from an unknown input.

Parameters:
unknownstr | tuple[int, int, int] | tuple[float, float, float] | compas.colors.Color

The color input.

Returns:
compas.colors.Color | None
Raises:
ColorError