Color8Bit¶
- class wpilib.Color8Bit(*args, **kwargs)¶
Bases:
pybind11_builtins.pybind11_object
Represents colors that can be used with Addressable LEDs.
Overloaded function.
__init__(self: wpilib._wpilib.Color8Bit) -> None
__init__(self: wpilib._wpilib.Color8Bit, red: int, green: int, blue: int) -> None
Constructs a Color8Bit.
- Parameters
r – Red value (0-255)
g – Green value (0-255)
b – Blue value (0-255)
__init__(self: wpilib._wpilib.Color8Bit, color: wpilib._wpilib.Color) -> None
Constructs a Color8Bit from a Color.
- Parameters
color – The color
- property blue¶
- property green¶
- property red¶