|
FastLED 3.10.6
|
Additive drawing helpers over a span of float pixels.
Definition at line 66 of file ring_canvas.h.
#include <ring_canvas.h>
Collaboration diagram for mood_ring::RingCanvas:Public Member Functions | |
| RingCanvas (fl::span< RGBf > px) | |
| void | clear () |
| void | fill (const RGBf &color, float gain) |
| Add the same colour to every pixel. | |
| void | lobe (float pos, float sigma, const RGBf &color, float gain) |
| Add a smooth lobe centred at pos (turns) with half-width sigma (turns). | |
| void | pixel (int i, const RGBf &color, float gain) |
| Add to one pixel, index wrapped. | |
| float | posOf (int i) const |
| Position of pixel i in turns. | |
| void | ring (float origin, float radius, float sigma, const RGBf &color, float gain) |
| Add a band at distance radius (turns, 0..0.5) from origin, on both sides of it at once: an expanding pulse ring. | |
| int | size () const |
Private Attributes | |
| fl::span< RGBf > | mPx |