forked from Makuna/NeoPixelBus
Fixed compilation with arduino shit removed
This commit is contained in:
1 parent
7cb1eb0076
commit
7be759c577
18 files changed
+5
-1445
No files matched your search
@@ -28,19 +28,6 @@ License along with NeoPixel. If not, see
|
||||
#include "HslColor.h"
|
||||
#include "HsbColor.h"
|
||||
#include "RgbwColor.h"
|
||||
#include "HtmlColor.h"
|
||||
|
||||
RgbwColor::RgbwColor(const HtmlColor& color)
|
||||
{
|
||||
uint32_t temp = color.Color;
|
||||
B = (temp & 0xff);
|
||||
temp = temp >> 8;
|
||||
G = (temp & 0xff);
|
||||
temp = temp >> 8;
|
||||
R = (temp & 0xff);
|
||||
temp = temp >> 8;
|
||||
W = (temp & 0xff);
|
||||
};
|
||||
|
||||
RgbwColor::RgbwColor(const HslColor& color)
|
||||
{
|
||||
@@ -187,4 +174,4 @@ RgbwColor RgbwColor::BilinearBlend(const RgbwColor& c00,
|
||||
c00.G * v00 + c10.G * v10 + c01.G * v01 + c11.G * v11,
|
||||
c00.B * v00 + c10.B * v10 + c01.B * v01 + c11.B * v11,
|
||||
c00.W * v00 + c10.W * v10 + c01.W * v01 + c11.W * v11 );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user