forked from Makuna/NeoPixelBus
Topology, Curves, Gamma, and Samples
Topology, Tiles, and Mosaic layout Animation Curves Color Gamma correct change timescale dynamically on NeoPixelAnimator bilinear color blend methods new samples to support new features
This commit is contained in:
@@ -30,26 +30,23 @@ class Neo3Elements
|
||||
{
|
||||
public:
|
||||
static const size_t PixelSize = 3;
|
||||
static const RgbColor Empty();
|
||||
|
||||
static uint8_t* getPixelAddress(uint8_t* pPixels, uint16_t indexPixel)
|
||||
{
|
||||
return &pPixels[indexPixel * PixelSize];
|
||||
return pPixels + indexPixel * PixelSize;
|
||||
}
|
||||
|
||||
typedef RgbColor ColorObject;
|
||||
|
||||
};
|
||||
|
||||
class Neo4Elements
|
||||
{
|
||||
public:
|
||||
static const size_t PixelSize = 4;
|
||||
static const RgbColor Empty();
|
||||
|
||||
static uint8_t* getPixelAddress(uint8_t* pPixels, uint16_t indexPixel)
|
||||
{
|
||||
return &pPixels[indexPixel * PixelSize];
|
||||
return pPixels + indexPixel * PixelSize;
|
||||
}
|
||||
|
||||
typedef RgbwColor ColorObject;
|
||||
|
||||
Reference in New Issue
Block a user