Color8Bit

class wpilib.Color8Bit(*args, **kwargs)

Bases: pybind11_object

Represents colors that can be used with Addressable LEDs.

Overloaded function.

  1. __init__(self: wpilib._wpilib.Color8Bit) -> None

  2. __init__(self: wpilib._wpilib.Color8Bit, red: int, green: int, blue: int) -> None

Constructs a Color8Bit.

Parameters:
  • red – Red value (0-255)

  • green – Green value (0-255)

  • blue – Blue value (0-255)

  1. __init__(self: wpilib._wpilib.Color8Bit, color: wpilib._wpilib.Color) -> None

Constructs a Color8Bit from a Color.

Parameters:

color – The color

property blue
property green
hexString() str

Return this color represented as a hex string.

Returns:

a string of the format <tt>#RRGGBB</tt>

property red