WPILibC++  2020.3.2-60-g3011ebe
frc::Color8Bit Class Reference

Represents colors that can be used with Addressable LEDs. More...

#include <Color8Bit.h>

Public Member Functions

constexpr Color8Bit (int r, int g, int b)
 Constructs a Color8Bit. More...
 
constexpr Color8Bit (const Color &color)
 Constructs a Color8Bit from a Color. More...
 
constexpr operator Color () const
 

Public Attributes

int red = 0
 
int green = 0
 
int blue = 0
 

Detailed Description

Represents colors that can be used with Addressable LEDs.

Constructor & Destructor Documentation

◆ Color8Bit() [1/2]

constexpr frc::Color8Bit::Color8Bit ( int  r,
int  g,
int  b 
)
inlineconstexpr

Constructs a Color8Bit.

Parameters
redRed value (0-255)
greenGreen value (0-255)
blueBlue value (0-255)

◆ Color8Bit() [2/2]

constexpr frc::Color8Bit::Color8Bit ( const Color color)
inlineconstexpr

Constructs a Color8Bit from a Color.

Parameters
colorThe color

The documentation for this class was generated from the following file: