Color#

class corkus.objects.Color#

Represents a color returned by API. This class is similar to a (red, green, blue) tuple.

property r#

Return red component of the color.

Return type:

int

property g#

Return green component of the color.

Return type:

int

property b#

Return blue component of the color.

Return type:

int

property rgb#

Return (red, green, blue) tuple

Return type:

Tuple[int, int, int]

property hex#

Return hex representation of color like #4e80f7.

Return type:

str