Color (rinoh.color)

class rinoh.color.Color(red, green, blue, alpha=1)

Color defined by component values

Parameters
  • red (float) – red component (0 .. 1)

  • blue (float) – blue component (0 .. 1)

  • green (float) – green component (0 .. 1)

  • alpha (float) – opacity (0 .. 1)

property rgba
classmethod parse_string(string)
classmethod doc_format()
class rinoh.color.HexColor(string)

Color defined as a hexadecimal string

Parameters

string (str) – #RGBA or #RRGGBBAA (# and A are optional)

class rinoh.color.Gray(luminance, alpha=1)

Shade of gray

Parameters
  • luminance (float) – brightness (0 .. 1)

  • alpha (float) – opacity (0 .. 1)