Color.coerce

static Color.coerce(color)[source]

Coerce a color input into a color.

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

The color input.

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