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

Detailed Description

Definition at line 21 of file noisepalette.hpp.

+ Inheritance diagram for NoisePalette:

Public Member Functions

 NoisePalette (XYMap xyMap)
 
void lazyInit () override
 
void draw (DrawContext context) override
 
const char * fxName (int which) const override
 
void mapNoiseToLEDsUsingPalette (CRGB *leds)
 
uint8_t changeToRandomPalette ()
 
uint8_t getPalettePresetCount () const
 
uint8_t getPalettePreset () const
 
void setPalettePreset (int paletteIndex)
 
void setPalette (const CRGBPalette16 &palette, uint16_t speed, uint16_t scale, bool colorLoop)
 
void setSpeed (uint16_t speed)
 
void setScale (uint16_t scale)
 
- Public Member Functions inherited from FxGrid
 FxGrid (const XYMap &xyMap)
 
uint16_t xyMap (uint16_t x, uint16_t y) const
 
uint16_t getHeight () const
 
uint16_t getWidth () const
 
void setXYMap (const XYMap &xyMap)
 
XYMapgetXYMap ()
 
const XYMapgetXYMap () 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
 

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 FxGrid
XYMap mXyMap
 
- Protected Attributes inherited from Fx
uint16_t mNumLeds
 

Constructor & Destructor Documentation

◆ NoisePalette()

NoisePalette::NoisePalette ( XYMap xyMap)
inline

Definition at line 23 of file noisepalette.hpp.

Member Function Documentation

◆ changeToRandomPalette()

uint8_t NoisePalette::changeToRandomPalette ( )
inline
Examples
NoisePlusPalette.ino.

Definition at line 257 of file noisepalette.hpp.

◆ draw()

void NoisePalette::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.

Examples
NoisePlusPalette.ino.

Definition at line 43 of file noisepalette.hpp.

◆ fxName()

const char * NoisePalette::fxName ( int which) const
inlineoverridevirtual

Implements Fx.

Definition at line 48 of file noisepalette.hpp.

◆ getPalettePreset()

uint8_t NoisePalette::getPalettePreset ( ) const
inline

Definition at line 57 of file noisepalette.hpp.

◆ getPalettePresetCount()

uint8_t NoisePalette::getPalettePresetCount ( ) const
inline

Definition at line 56 of file noisepalette.hpp.

◆ lazyInit()

void NoisePalette::lazyInit ( )
inlineoverridevirtual

Reimplemented from Fx.

Examples
NoisePlusPalette.ino.

Definition at line 41 of file noisepalette.hpp.

◆ mapNoiseToLEDsUsingPalette()

void NoisePalette::mapNoiseToLEDsUsingPalette ( CRGB * leds)
inline

Definition at line 182 of file noisepalette.hpp.

◆ setPalette()

void NoisePalette::setPalette ( const CRGBPalette16 & palette,
uint16_t speed,
uint16_t scale,
bool colorLoop )
inline

Definition at line 59 of file noisepalette.hpp.

◆ setPalettePreset()

void NoisePalette::setPalettePreset ( int paletteIndex)
inline

Definition at line 114 of file noisepalette.hpp.

◆ setScale()

void NoisePalette::setScale ( uint16_t scale)
inline
Examples
NoisePlusPalette.ino.

Definition at line 67 of file noisepalette.hpp.

◆ setSpeed()

void NoisePalette::setSpeed ( uint16_t speed)
inline
Examples
NoisePlusPalette.ino.

Definition at line 66 of file noisepalette.hpp.


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