FastLED 3.9.3
Loading...
Searching...
No Matches
TwinkleFox Class Reference

Detailed Description

Definition at line 111 of file twinklefox.hpp.

+ Inheritance diagram for TwinkleFox:

Public Member Functions

 TwinkleFox (uint16_t num_leds)
 
void lazyInit () override
 
void draw (DrawContext context) override
 
void chooseNextColorPalette (CRGBPalette16 &pal)
 
const char * fxName (int) const override
 
- Public Member Functions inherited from FxStrip
 FxStrip (uint16_t numLeds)
 
void setXmap (const XMap &xMap)
 
uint16_t xyMap (uint16_t x) const
 
- Public Member Functions inherited from Fx
 Fx (uint16_t numLeds)
 
virtual bool hasAlphaChannel () const
 
virtual bool hasFixedFrameRate (float *fps) const
 
virtual int fxNum () const
 
virtual void fxSet (int fx)
 
virtual void fxNext (int fx=1)
 
virtual int fxGet () const
 
virtual void pause ()
 
virtual void resume ()
 
virtual void destroy ()
 
uint16_t getNumLeds () const
 
- Public Member Functions inherited from Referent
virtual int ref_count () const
 

Public Attributes

CRGBPalette16 targetPalette
 
CRGBPalette16 currentPalette
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ TwinkleFox()

TwinkleFox::TwinkleFox ( uint16_t num_leds)
inline

Definition at line 116 of file twinklefox.hpp.

Member Function Documentation

◆ chooseNextColorPalette()

void TwinkleFox::chooseNextColorPalette ( CRGBPalette16 & pal)

Definition at line 301 of file twinklefox.hpp.

◆ draw()

void TwinkleFox::draw ( DrawContext context)
inlineoverridevirtual
Parameters
nowThe current time in milliseconds. Fx writers are encouraged to use this instead of millis() directly as this will more deterministic behavior.

Implements Fx.

Definition at line 126 of file twinklefox.hpp.

◆ fxName()

const char * TwinkleFox::fxName ( int ) const
inlineoverridevirtual

Implements Fx.

Definition at line 134 of file twinklefox.hpp.

◆ lazyInit()

void TwinkleFox::lazyInit ( )
inlineoverridevirtual

Reimplemented from Fx.

Definition at line 124 of file twinklefox.hpp.

Member Data Documentation

◆ currentPalette

CRGBPalette16 TwinkleFox::currentPalette

Definition at line 114 of file twinklefox.hpp.

◆ targetPalette

CRGBPalette16 TwinkleFox::targetPalette

Definition at line 113 of file twinklefox.hpp.


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