FastLED 3.9.7
|
Definition at line 21 of file noisepalette.h.
Public Member Functions | |
NoisePalette (XYMap xyMap, float fps=60.f) | |
bool | hasFixedFrameRate (float *fps) const override |
void | draw (DrawContext context) override |
Str | fxName () 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 fl::Fx2d | |
Fx2d (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) |
XYMap & | getXYMap () |
const XYMap & | getXYMap () const |
Public Member Functions inherited from fl::Fx | |
Fx (uint16_t numLeds) | |
virtual void | pause (uint32_t now) |
virtual void | resume (uint32_t now) |
uint16_t | getNumLeds () const |
Public Member Functions inherited from fl::Referent | |
virtual int | ref_count () const |
Additional Inherited Members | |
Public Types inherited from fl::Fx | |
using | DrawContext = _DrawContext |
Protected Member Functions inherited from fl::Referent | |
Referent (const Referent &) | |
Referent & | operator= (const Referent &) |
Referent (Referent &&) | |
Referent & | operator= (Referent &&) |
virtual void | ref () |
virtual void | unref () |
virtual void | destroy () |
Protected Attributes inherited from fl::Fx2d | |
XYMap | mXyMap |
Protected Attributes inherited from fl::Fx | |
uint16_t | mNumLeds |
fl::NoisePalette::NoisePalette | ( | XYMap | xyMap, |
float | fps = 60.f ) |
Definition at line 17 of file noisepalette.cpp.
uint8_t fl::NoisePalette::changeToRandomPalette | ( | ) |
Definition at line 180 of file noisepalette.cpp.
|
inlineoverridevirtual |
now | The current time in milliseconds. Fx writers are encouraged to use this instead of millis() directly as this will more deterministic behavior. |
Implements fl::Fx.
Definition at line 33 of file noisepalette.h.
|
inlineoverridevirtual |
Implements fl::Fx.
Definition at line 38 of file noisepalette.h.
|
inline |
Definition at line 46 of file noisepalette.h.
|
inline |
Definition at line 45 of file noisepalette.h.
|
inlineoverridevirtual |
Reimplemented from fl::Fx.
Definition at line 26 of file noisepalette.h.
void fl::NoisePalette::mapNoiseToLEDsUsingPalette | ( | CRGB * | leds | ) |
Definition at line 105 of file noisepalette.cpp.
|
inline |
Definition at line 48 of file noisepalette.h.
void fl::NoisePalette::setPalettePreset | ( | int | paletteIndex | ) |
Definition at line 37 of file noisepalette.cpp.
|
inline |
Definition at line 56 of file noisepalette.h.
|
inline |
Definition at line 55 of file noisepalette.h.