Color.from_rgb255

classmethod Color.from_rgb255(r, g, b)

Construct a color from RGB255 components.

Parameters
  • r (int & valuerange[0, 255]) – Red component.

  • g (int & valuerange[0, 255]) – Green component.

  • b (int & valuerange[0, 255]) – Blue component.

Returns

Color