FastLED 3.10.6
Loading...
Searching...
No Matches
ring_canvas.h File Reference
#include "FastLED.h"
#include "fl/stl/span.h"
#include "fl/stl/stdint.h"
+ Include dependency graph for ring_canvas.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mood_ring::RGBf
 Linear-light float pixel, nominal range [0, 1], may exceed 1 before clip. More...
 
class  mood_ring::RingCanvas
 Additive drawing helpers over a span of float pixels. More...
 
class  mood_ring::Xorshift
 Small deterministic RNG for sparkle. No libc, no global state. More...
 

Namespaces

namespace  mood_ring
 

Functions

float mood_ring::clampf (float v, float lo, float hi)
 
float mood_ring::falloff (float distance, float sigma)
 Smooth bump: 1 at distance 0, 0 at distance >= sigma.
 
RGBf mood_ring::rgbfWhite ()
 
float mood_ring::ringDistance (float a, float b)
 Shortest distance between two ring positions, in turns, in [0, 0.5].
 
float mood_ring::ringOffset (float a, float b)
 Signed shortest offset from b to a on the ring, in (-0.5, 0.5].
 
float mood_ring::smoothstepf (float e0, float e1, float x)
 0 below e0, 1 above e1, smooth in between.
 
CRGB mood_ring::toCRGB (const RGBf &p)
 
RGBf mood_ring::toRGBf (CRGB c)
 
float mood_ring::wrapTurns (float t)
 Wrap into [0, 1).