|
FastLED 3.9.15
|
An animation that moves a single LED back and forth (Larson Scanner effect)
#include <cylon.h>
Inheritance diagram for fl::Cylon:
Collaboration diagram for fl::Cylon:Public Member Functions | |
| Cylon (u16 num_leds, u8 fade_amount=250, u8 delay_ms=10) | |
| void | draw (DrawContext context) override |
| fl::string | fxName () const override |
Public Member Functions inherited from fl::Fx1d | |
| Fx1d (u16 numLeds) | |
| void | setXmap (const XMap &xMap) |
| u16 | xyMap (u16 x) const |
Public Member Functions inherited from fl::Fx | |
| Fx (u16 numLeds) | |
| u16 | getNumLeds () const |
| virtual bool | hasFixedFrameRate (float *fps) const |
| virtual void | pause (fl::u32 now) |
| virtual void | resume (fl::u32 now) |
Public Attributes | |
| u8 | delay_ms |
Private Attributes | |
| u8 | fade_amount |
| u8 | hue = 0 |
| i16 | position = 0 |
| bool | reverse = false |
Additional Inherited Members | |
Public Types inherited from fl::Fx | |
| using | DrawContext = ::fl::DrawContext |
Protected Member Functions inherited from fl::Fx | |
| virtual | ~Fx () FL_NOEXCEPT |
Protected Attributes inherited from fl::Fx1d | |
| XMap | mXMap |
Protected Attributes inherited from fl::Fx | |
| u16 | mNumLeds |