Fixed compilation with arduino shit removed

This commit is contained in:
feedc0de committed 2021-01-23 02:05:26 +01:00
1 parent 7cb1eb0076
commit 7be759c577
18 files changed
+5 -1445

No files matched your search

+1 -13
View File
@@ -27,7 +27,6 @@ License along with NeoPixel. If not, see
#include "RgbColor.h"
#include "HslColor.h"
#include "HsbColor.h"
#include "HtmlColor.h"
static float _CalcColor(float p, float q, float t)
{
@@ -48,17 +47,6 @@ static float _CalcColor(float p, float q, float t)
return p;
}
RgbColor::RgbColor(const HtmlColor& color)
{
uint32_t temp = color.Color;
B = (temp & 0xff);
temp = temp >> 8;
G = (temp & 0xff);
temp = temp >> 8;
R = (temp & 0xff);
};
RgbColor::RgbColor(const HslColor& color)
{
float r;
@@ -258,4 +246,4 @@ RgbColor RgbColor::BilinearBlend(const RgbColor& c00,
c00.R * v00 + c10.R * v10 + c01.R * v01 + c11.R * v11,
c00.G * v00 + c10.G * v10 + c01.G * v01 + c11.G * v11,
c00.B * v00 + c10.B * v10 + c01.B * v01 + c11.B * v11);
}
}