forked from Makuna/NeoPixelBus
esp8266Compiled
const & in template causes near 100 bytes extra code, so removed
This commit is contained in:
1 parent
3dbfae7fc4
commit
0b6862852c
5 files changed
+23
-4
No files matched your search
+1
-1
@@ -133,7 +133,7 @@ public:
|
||||
return _countPixels;
|
||||
};
|
||||
|
||||
void SetPixelColor(uint16_t indexPixel, const typename T_COLOR_FEATURE::ColorObject& color)
|
||||
void SetPixelColor(uint16_t indexPixel, typename T_COLOR_FEATURE::ColorObject color)
|
||||
{
|
||||
if (indexPixel < _countPixels)
|
||||
{
|
||||
|
||||
@@ -62,6 +62,19 @@ struct HtmlColor
|
||||
{
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Comparison operators
|
||||
// ------------------------------------------------------------------------
|
||||
bool operator==(const HtmlColor& other) const
|
||||
{
|
||||
return (Color == other.Color);
|
||||
};
|
||||
|
||||
bool operator!=(const HtmlColor& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// BilinearBlend between four colors by the amount defined by 2d variable
|
||||
// c00 - upper left quadrant color
|
||||
|
||||
@@ -79,6 +79,9 @@ struct RgbColor
|
||||
{
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Comparison operators
|
||||
// ------------------------------------------------------------------------
|
||||
bool operator==(const RgbColor& other) const
|
||||
{
|
||||
return (R == other.R && G == other.G && B == other.B);
|
||||
|
||||
@@ -86,6 +86,9 @@ struct RgbwColor
|
||||
{
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Comparison operators
|
||||
// ------------------------------------------------------------------------
|
||||
bool operator==(const RgbwColor& other) const
|
||||
{
|
||||
return (R == other.R && G == other.G && B == other.B && W == other.W);
|
||||
|
||||
Reference in new issue
Block a user