Color class

Namespace for creating colors via RGB and HEX properties.

Note: RGB and HEX values can be retrieved from various color picking tools.

Constructors

constructor(self, red: int, green: int, blue: int)
constructor(self, hex: str)

Methods

__eq__(self, other: Color) -> bool
static random() -> Color

Properties

static readonly black Color
readonly blue int
static readonly blue Color
static readonly cyan Color
static readonly dark_blue Color
static readonly dark_gray Color
static readonly dark_green Color
static readonly dark_red Color
static readonly deep_blue Color
static readonly deep_red Color
static readonly golden Color
static readonly gray Color
readonly green int
static readonly green Color
static readonly light_blue Color
static readonly light_gray Color
static readonly light_green Color
static readonly light_pink Color
static readonly orange Color
readonly red int
static readonly red Color
static readonly sky_blue Color
static readonly sky_blue_light Color
static readonly very_dark_green Color
static readonly very_dark_red Color
static readonly very_light_gray Color
static readonly white Color
static readonly yellow Color