FastLED 3.10.6
Loading...
Searching...
No Matches
mood_ring Namespace Reference

Namespaces

namespace  anonymous_namespace{layers.cpp}
 
namespace  anonymous_namespace{mood_painter.cpp}
 
namespace  anonymous_namespace{mood_palette.cpp}
 
namespace  anonymous_namespace{room_sense.cpp}
 

Classes

class  BreathLayer
 Calm room. More...
 
class  FlowLayer
 Busy room without a beat. More...
 
class  Follower
 Smoothed one-pole follower with independent attack and release. More...
 
class  GrooveLayer
 Music with a beat. More...
 
struct  ListenerTuning
 Everything the UI is allowed to tune on the listening side. More...
 
class  MoodPainter
 
struct  MoodPalette
 
struct  PainterTuning
 
struct  RGBf
 Linear-light float pixel, nominal range [0, 1], may exceed 1 before clip. More...
 
class  RingCanvas
 Additive drawing helpers over a span of float pixels. More...
 
struct  RoomEvents
 One-frame rising edges. Set on the frame the event lands, cleared next. More...
 
class  RoomListener
 
struct  RoomSense
 Everything a visual is allowed to react to. More...
 
class  Xorshift
 Small deterministic RNG for sparkle. No libc, no global state. More...
 

Functions

float clampf (float v, float lo, float hi)
 
float falloff (float distance, float sigma)
 Smooth bump: 1 at distance 0, 0 at distance >= sigma.
 
RGBf paletteColor (const MoodPalette &p, float t)
 Colour at position t in [0, 1] along the family, at value v.
 
MoodPalette paletteFor (const RoomSense &s, float hueDrift)
 Derive the family for this frame. Cheap; call every frame.
 
RGBf rgbfWhite ()
 
float ringDistance (float a, float b)
 Shortest distance between two ring positions, in turns, in [0, 0.5].
 
float ringOffset (float a, float b)
 Signed shortest offset from b to a on the ring, in (-0.5, 0.5].
 
float smoothstepf (float e0, float e1, float x)
 0 below e0, 1 above e1, smooth in between.
 
CRGB toCRGB (const RGBf &p)
 
RGBf toRGBf (CRGB c)
 
float wrapTurns (float t)
 Wrap into [0, 1).