49 uint8_t getMaxRgbComponentIndex()
const;
55 uint8_t getMinRgbComponentIndex()
const;
62 uint8_t getRgbComponentFromIndex(
const uint8_t index)
const;
83 Color(uint8_t red, uint8_t green, uint8_t blue);
92 Color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha);
171 operator uint16_t()
const;
uint8_t getRed() const
Gets the red component of the color in RGB color model.
static const Color BROWN
The color brown.
Definition Color.h:278
void setAlpha(uint8_t alpha)
Sets the alpha of the color.
uint16_t getRgb565() const
Gets the RGB-565 representation of this color.
Color()
Default constructor which creates a black color with no transparency.
bool operator==(const Color &rhs) const
Compares 2 Colors.
uint8_t getBlue() const
Gets the blue component of the color in RGB color model.
void setBlue(uint8_t blue)
Sets the blue component of the color in RGB color model.
uint8_t getMinRgbComponent() const
Gets the value of the smallest component among the RGB components.
Color getInverse() const
Gets the inverse of this color.
Color & operator=(const Color &rhs)
Copies the values of another Color object to this Color object.
static const Color PURPLE
The color purple.
Definition Color.h:283
static const Color BLUE
The color blue.
Definition Color.h:253
uint8_t getValue() const
Gets the value in HSV model.
void setGreen(uint8_t green)
Sets the green component of the color in RGB color model.
static const Color LIGHT_GREY
The color light grey (2/3 brightness).
Definition Color.h:303
uint32_t getRgb888() const
Gets the RGB-888 representation of this color.
static const Color RED
The color red.
Definition Color.h:243
static const Color DARK_GREY
The color dark grey (1/3 brightness).
Definition Color.h:293
uint8_t getMaxRgbComponent() const
Gets the value of the largest component among the RGB components.
int16_t getHue() const
Gets the hue in HSI, HSV and HSL models.
void setRed(uint8_t red)
Sets the red component of the color in RGB color model.
uint8_t getAlpha() const
Gets the alpha of the color.
Color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
Creates a color with 8-bit RGB values with specified transparency.
uint8_t getIntensity() const
Gets the intensity in HSI model.
static const Color CYAN
The color cyan.
Definition Color.h:263
Color(uint16_t rgb565)
Creates a color from the RGB-565 representation.
static const Color YELLOW
The color yellow.
Definition Color.h:258
uint8_t getLightness() const
Gets the lightness in HSL model.
uint8_t getGreen() const
Gets the green component of the color in RGB color model.
static const Color WHITE
The color white.
Definition Color.h:308
static const Color NAVY
The color navy.
Definition Color.h:288
static const Color BLACK
The color black.
Definition Color.h:238
uint32_t getArgb8888() const
Gets the ARGB-8888 representation of this color.
static const Color ORANGE
The color orange.
Definition Color.h:273
static const Color GREEN
The color green.
Definition Color.h:248
static const Color MAGENTA
The color magenta.
Definition Color.h:268
static const Color GREY
The color grey (1/2 brightness).
Definition Color.h:298
Color(uint8_t red, uint8_t green, uint8_t blue)
Copy constructor which copies the values from another Color object.