Initial Commit
This commit is contained in:
32
include/FluidColor.h
Normal file
32
include/FluidColor.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef FLUIDCOLOR_H
|
||||
#define FLUIDCOLOR_H
|
||||
|
||||
#include "Animation.h"
|
||||
#include "GlobalSettings.h"
|
||||
#include "Utilities.h"
|
||||
|
||||
class FluidColor : public Animation {
|
||||
public:
|
||||
FluidColor(long _updateTime) : Animation(_updateTime, 15),
|
||||
colorShifter(0), colors(new CRGB[256]) {
|
||||
for(uint16_t i = 0; i < 256; i++) {
|
||||
colors[i] = CRGB(CHSV(i, 255, 255));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void initialize(CRGB* leds) {
|
||||
colorShifter = 0;
|
||||
resetTimer();
|
||||
}
|
||||
|
||||
void execute(CRGB* leds);
|
||||
private:
|
||||
uint16_t
|
||||
colorShifter;
|
||||
CRGB*
|
||||
colors;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user