51 DBG(
"TimeScale::applyExact: mLastRealTime > timeNow: " <<
mLastRealTime <<
" > " << timeNow);
71 int32_t diff =
static_cast<int32_t
>(elapsedRealTime *
mTimeScale);
81 uint32_t abs_diff = -diff;
TimeScale timeScale(0, 1.0f)
void reset(uint32_t realTimeNow) override
void setScale(float timeScale)
uint32_t time() const override
void resume(uint32_t now)
uint32_t update(uint32_t timeNow) override
void applyExact(uint32_t timeNow)
TimeScale(uint32_t realTimeNow=0, float initialTimeScale=1.0f)
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.