Colour

class i75.colour.Colour(value: int)

Manage colours from a 32-bit integer

property a: int

The alpha component - 0 to 255.

property b: int

The blue component - 0 to 255.

static fromint32(value: int) Colour

Create a Colour object from a 32-bit integer.

static fromrgb(r: int, g: int, b: int) Colour

Create a Colour object from three RGB values.

static fromrgba(r: int, g: int, b: int, a: int) Colour

Create a Colour object from four RGBA values.

property g: int

The green component - 0 to 255.

property r: int

The red component - 0 to 255.

set_colour(i75: BaseI75)

Set the current colour used by i75 to this colour.