Colors#

Basics and methods for color handling in plot_data.

class plot_data.colors.Color(red: float, green: float, blue: float, name: str = '')[source]#

Bases: DessiaObject

Base class for handling colors as objects.

classmethod dict_to_object(dict_: Dict[str, Any], **_) SerializableObject[source]#

Get color object from dict.

classmethod from_hex(hex_code)[source]#

Get REB color from hexadecimal color.

classmethod from_hsv(hue: float, saturation: float, value: float)[source]#

Get RGB color from HSV color.

to_dict(**_) Dict[str, Any][source]#

Get dict of color.