geolib.soils.soil_utils

Classes

Color(value)

Color type from Pydantic

class geolib.soils.soil_utils.Color(value)

Color type from Pydantic

see https://pydantic-docs.helpmanual.io/usage/types/#color-type

Example

For construction:

Color("ff00ff")  # hex value
Color((255, 255, 255))  # rgb tuple
Color("purple")  # named
Parameters:

value (Union[Tuple[int, int, int], Tuple[int, int, int, float], str, Color])

classmethod from_internal(c)

Convert a D-Serie color integer into a Color.

Parameters:

c (int)