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);
98 Color(uint16_t rgb565);
171 operator uint16_t()
const;
uint8_t getRed() const
Gets the red component of the color in RGB color model.
Definition Color.cpp:53
static const Color MAGENTA
The color magenta.
Definition Color.h:268
Color & operator=(const Color &rhs)
Copies the values of another Color object to this Color object.
Definition Color.cpp:93
static const Color GREEN
The color green.
Definition Color.h:248
void setAlpha(uint8_t alpha)
Sets the alpha of the color.
Definition Color.cpp:89
uint16_t getRgb565() const
Gets the RGB-565 representation of this color.
Definition Color.cpp:105
Color()
Default constructor which creates a black color with no transparency.
Definition Color.cpp:20
bool operator==(const Color &rhs) const
Compares 2 Colors.
Definition Color.cpp:69
uint8_t getBlue() const
Gets the blue component of the color in RGB color model.
Definition Color.cpp:61
void setBlue(uint8_t blue)
Sets the blue component of the color in RGB color model.
Definition Color.cpp:85
static const Color PURPLE
The color purple.
Definition Color.h:283
static const Color ORANGE
The color orange.
Definition Color.h:273
uint8_t getMinRgbComponent() const
Gets the value of the smallest component among the RGB components.
Definition Color.cpp:174
static const Color WHITE
The color white.
Definition Color.h:308
uint8_t getValue() const
Gets the value in HSV model.
Definition Color.cpp:220
void setGreen(uint8_t green)
Sets the green component of the color in RGB color model.
Definition Color.cpp:81
uint32_t getRgb888() const
Gets the RGB-888 representation of this color.
Definition Color.cpp:131
uint8_t getMaxRgbComponent() const
Gets the value of the largest component among the RGB components.
Definition Color.cpp:170
static const Color BLUE
The color blue.
Definition Color.h:253
int16_t getHue() const
Gets the hue in HSI, HSV and HSL models.
Definition Color.cpp:178
void setRed(uint8_t red)
Sets the red component of the color in RGB color model.
Definition Color.cpp:77
uint8_t getAlpha() const
Gets the alpha of the color.
Definition Color.cpp:65
static const Color LIGHT_GREY
The color light grey (2/3 brightness).
Definition Color.h:303
uint8_t getIntensity() const
Gets the intensity in HSI model.
Definition Color.cpp:215
static const Color YELLOW
The color yellow.
Definition Color.h:258
static const Color CYAN
The color cyan.
Definition Color.h:263
Color getInverse() const
Gets the inverse of this color.
Definition Color.cpp:139
static const Color GREY
The color grey (1/2 brightness).
Definition Color.h:298
uint8_t getLightness() const
Gets the lightness in HSL model.
Definition Color.cpp:225
uint8_t getGreen() const
Gets the green component of the color in RGB color model.
Definition Color.cpp:57
static const Color BROWN
The color brown.
Definition Color.h:278
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
static const Color NAVY
The color navy.
Definition Color.h:288
uint32_t getArgb8888() const
Gets the ARGB-8888 representation of this color.
Definition Color.cpp:135
static const Color BLACK
The color black.
Definition Color.h:238