pitrix/include/effect_fire.h
Fabian Schlenz 382631d7d7 Effect#loop now gets the time since the last run of the loop in ms. This enables
the effects to show animations that stay fluid independent of the current frame rate.
2019-10-01 06:29:32 +02:00

21 lines
353 B
C++

#pragma once
#include "Effect.h"
#include "my_fastled.h"
class FireEffect : public Effect {
private:
uint8_t* data;
uint8_t spark_temp();
void cooldown();
void spark();
void propagate();
void draw();
static CRGBPalette16 palette;
public:
FireEffect();
~FireEffect();
void loop(uint16_t ms);
String get_name() override { return "fire"; }
};