|
FastLED 3.10.6
|
Definition at line 32 of file mood_painter.h.
#include <mood_painter.h>
Collaboration diagram for mood_ring::MoodPainter:Classes | |
| struct | Pulse |
Public Member Functions | |
| int | activePulseCount () const |
| void | draw (const RoomSense &s, fl::u32 nowMs, fl::span< CRGB > out) |
| Render one frame into out. | |
Public Attributes | |
| PainterTuning | tuning |
Private Member Functions | |
| void | applyTrails (float keep) |
| void | drawPulses (const MoodPalette &pal, fl::u32 nowMs) |
| void | emitPulse (float strength, bool downbeat, fl::u32 nowMs) |
| void | ensureBuffers (fl::size n) |
| void | mixLayers (const RoomSense &s) |
Private Attributes | |
| BreathLayer | mBreath |
| fl::vector< RGBf > | mBufBreath |
| fl::vector< RGBf > | mBufFlow |
| fl::vector< RGBf > | mBufGroove |
| FlowLayer | mFlow |
| GrooveLayer | mGroove |
| float | mHueDrift = 0.0f |
| slow hue travel, turns of the wheel | |
| fl::u32 | mLastMs = 0 |
| fl::vector< RGBf > | mMix |
| this frame, summed | |
| Pulse | mPulses [kMaxPulses] |
| fl::vector< RGBf > | mTrail |
| persistence shadow | |
Static Private Attributes | |
| static const int | kMaxPulses = 8 |