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

Detailed Description

Examples
FxEngine.ino, FxNoisePlusPalette.ino, and Overclock.ino.

Definition at line 19 of file noisepalette.h.

#include <noisepalette.h>

+ Inheritance diagram for fl::NoisePalette:
+ Collaboration diagram for fl::NoisePalette:

Public Member Functions

 NoisePalette (XYMap xyMap, float fps=60.f)
 
u8 changeToRandomPalette ()
 
void draw (DrawContext context) override
 
string fxName () const override
 
u8 getPalettePreset () const
 
u8 getPalettePresetCount () const
 
bool hasFixedFrameRate (float *fps) const override
 
void mapNoiseToLEDsUsingPalette (fl::span< CRGB > leds)
 
void setPalette (const CRGBPalette16 &palette, u16 speed, u16 scale, bool colorLoop)
 
void setPalettePreset (int paletteIndex)
 
void setScale (u16 scale)
 
void setSpeed (u16 speed)
 
- Public Member Functions inherited from fl::Fx2d
 Fx2d (const XYMap &xyMap)
 
u16 getHeight () const
 
u16 getWidth () const
 
XYMapgetXYMap ()
 
const XYMapgetXYMap () const
 
void setXYMap (const XYMap &xyMap)
 
u16 xyMap (u16 x, u16 y) const
 
- Public Member Functions inherited from fl::Fx
 Fx (u16 numLeds)
 
u16 getNumLeds () const
 
virtual void pause (fl::u32 now)
 
virtual void resume (fl::u32 now)
 

Private Member Functions

void fillnoise8 ()
 
void SetupBlackAndWhiteStripedPalette ()
 
void SetupPurpleAndGreenPalette ()
 
void SetupRandomPalette ()
 
u16 XY (u8 x, u8 y) const
 

Private Attributes

bool colorLoop = 0
 
CRGBPalette16 currentPalette
 
int currentPaletteIndex = 0
 
u16 height
 
float mFps = 60.f
 
u16 mX
 
u16 mY
 
u16 mZ
 
fl::vector_psram< u8noise
 
u16 scale = 0
 
u16 speed = 0
 
u16 width
 

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::Fx2d
XYMap mXyMap
 
- Protected Attributes inherited from fl::Fx
u16 mNumLeds
 

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