Go to the source code of this file.
|
| float | mood_ring::falloff (float distance, float sigma) |
| | Smooth bump: 1 at distance 0, 0 at distance >= sigma.
|
| |
| 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).
|
| |