FastLED 3.10.8
Loading...
Searching...
No Matches
fx_layer.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stl/stdint.h"
4#include "fl/stl/shared_ptr.h" // For FASTLED_SHARED_PTR macros
5#include "fl/stl/shared_ptr.h" // For shared_ptr
6#include "fl/stl/noexcept.h"
7
8// Forward declarations to avoid including heavy headers
9namespace fl {
10class Frame;
11class Fx;
12class AudioBatch;
13
15class FxLayer {
16 public:
18
19 void draw(fl::u32 now, float speed = 1.0f, const AudioBatch *audio = nullptr) FL_NO_EXCEPT;
20
21 void pause(fl::u32 now) FL_NO_EXCEPT;
22
23 void release() FL_NO_EXCEPT;
24
26
28
29 private:
32 fl::u32 mLastNow = 0;
33 bool running = false;
34};
35
36} // namespace fl
uint16_t speed
Definition Noise.ino:72
Definition fx.h:18
fl::shared_ptr< Fx > getFx() FL_NO_EXCEPT
void draw(fl::u32 now, float speed=1.0f, const AudioBatch *audio=nullptr) FL_NO_EXCEPT
fl::span< CRGB > getSurface() FL_NO_EXCEPT
void setFx(fl::shared_ptr< Fx > newFx) FL_NO_EXCEPT
void pause(fl::u32 now) FL_NO_EXCEPT
fl::shared_ptr< Fx > fx
Definition fx_layer.h:31
fl::shared_ptr< Frame > frame
Definition fx_layer.h:30
fl::u32 mLastNow
Definition fx_layer.h:32
void release() FL_NO_EXCEPT
bool running
Definition fx_layer.h:33
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
Base definition for an LED controller.
Definition crgb.hpp:179
#define FASTLED_SHARED_PTR(type)
Definition shared_ptr.h:577