FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Cylon Class Reference

Detailed Description

An animation that moves a single LED back and forth (Larson Scanner effect)

Definition at line 13 of file cylon.h.

#include <cylon.h>

+ Inheritance diagram for fl::Cylon:
+ Collaboration diagram for fl::Cylon:

Public Member Functions

 Cylon (uint16_t num_leds, uint8_t fade_amount=250, uint8_t delay_ms=10)
 
void draw (DrawContext context) override
 
fl::Str fxName () const override
 
- Public Member Functions inherited from fl::Fx1d
 Fx1d (uint16_t numLeds)
 
void setXmap (const XMap &xMap)
 
uint16_t xyMap (uint16_t x) const
 
- Public Member Functions inherited from fl::Fx
 Fx (uint16_t numLeds)
 
uint16_t getNumLeds () const
 
virtual bool hasFixedFrameRate (float *fps) const
 
virtual void pause (uint32_t now)
 
virtual void resume (uint32_t now)
 
- Public Member Functions inherited from fl::Referent
virtual int ref_count () const
 

Public Attributes

uint8_t delay_ms
 

Private Attributes

uint8_t fade_amount
 
uint8_t hue = 0
 
int16_t position = 0
 
bool reverse = false
 

Additional Inherited Members

- Public Types inherited from fl::Fx
using DrawContext = _DrawContext
 
- Protected Member Functions inherited from fl::Fx
virtual ~Fx ()
 
- Protected Member Functions inherited from fl::Referent
 Referent ()
 
 Referent (const Referent &)
 
 Referent (Referent &&)
 
virtual ~Referent ()
 
virtual void destroy ()
 
Referentoperator= (const Referent &)
 
Referentoperator= (Referent &&)
 
virtual void ref ()
 
virtual void unref ()
 
- Protected Attributes inherited from fl::Fx1d
XMap mXMap
 
- Protected Attributes inherited from fl::Fx
uint16_t mNumLeds
 

The documentation for this class was generated from the following file: