qualitron.colors

class Color[source]

Bases: object

Class for basic color operations.

static HEXtoRGB(hex)[source]

Converts a hex color string to rgb.

Parameters

hex (sting) – The hex color

Returns

The rgb color

Return type

tuple

static HSVtoRGB(hsv)[source]

Convert a color from hsv to rgb.

Parameters

hsv (tuple) – A color in hsv format.

Returns

A color in rgb format

Return type

tuple

static RGBtoHEX(rgb)[source]
__init__()[source]

Inits a new Color instance.