#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