20 const uint8_t maxColorElement = 0xff);
35 uint8_t green()
const;
52 void assertValidColor(
55 const uint8_t blue)
const;
61 void deriveBrightness(
79 uint8_t brightnessFromColor(
const uint8_t component)
const;
84 uint8_t omitBrightness(
const uint8_t component)
const;
89 uint8_t applyBrightness(
const uint8_t component)
const;
97 uint8_t m_maxColorElement;
ColorBrightness(const uint8_t red, const uint8_t green, const uint8_t blue, const uint8_t maxColorElement=0xff)
Definition: ColorBrightness.cpp:12
void setColor(const uint8_t red, const uint8_t green, const uint8_t blue)
Definition: ColorBrightness.cpp:50
void setBrightness(const uint8_t brightness)
Definition: ColorBrightness.cpp:27
uint8_t brightness() const
Returns brightness in percents.
Definition: ColorBrightness.cpp:22
The class stores color represent by red, green and blue component. It allows to count the brightness ...
Definition: ColorBrightness.h:11