FastLED 3.10.6
Loading...
Searching...
No Matches
mood_ring::FlowLayer Class Reference

Detailed Description

Busy room without a beat.

Bass sets the size of two counter-rotating lobes, mids set how fast they travel, treble spawns sparkle grains that fade in and out, and rising energy widens everything while falling energy tightens it.

Definition at line 39 of file layers.h.

#include <layers.h>

+ Collaboration diagram for mood_ring::FlowLayer:

Classes

struct  Grain
 

Public Member Functions

void render (const RoomSense &s, const MoodPalette &pal, float dtSec, RingCanvas &c)
 

Private Member Functions

void drawGrains (const MoodPalette &pal, float dtSec, RingCanvas &c)
 
void spawnGrains (const RoomSense &s, float dtSec, int ringSize)
 

Private Attributes

Follower mBody
 
Grain mGrains [kMaxGrains]
 
float mHueWalk = 0.0f
 
float mPosA = 0.0f
 
float mPosB = 0.5f
 
Xorshift mRng {0xC0FFEE11u}
 
Follower mSigma
 
float mSpawnBudget = 0.0f
 

Static Private Attributes

static const int kMaxGrains = 24
 

The documentation for this class was generated from the following files: