FastLED 3.10.8
Loading...
Searching...
No Matches

◆ FlowFieldFP()

fl::FlowFieldFP::FlowFieldFP ( const XYMap & xyMap,
const Params & params = Params() )
explicit

Definition at line 509 of file flowfield.cpp.hpp.

510 : FlowField(xyMap, params) {
511 int w = (int)getWidth();
512 int h = (int)getHeight();
513
514 mState.init(w, h);
515 initPerm256(mPermX, 42);
516 initPerm256(mPermY, 1337);
517 syncParams();
518 if (!mState.fade_lut_initialized) {
520 mState.fade_lut_initialized = true;
521 }
522
523}
FlowField(const XYMap &xyMap, const Params &params=Params()) FL_NO_EXCEPT
FlowFieldFPState mState
Definition flowfield.h:400
void syncParams() FL_NO_EXCEPT
static void initPerm256(u8 *perm, u32 seed) FL_NO_EXCEPT
u16 xyMap(u16 x, u16 y) const FL_NO_EXCEPT
Definition fx2d.h:21
u16 getWidth() const FL_NO_EXCEPT
Definition fx2d.h:25
u16 getHeight() const FL_NO_EXCEPT
Definition fx2d.h:24
static void init_fade_lut(fl::i32 *table) FL_NO_EXCEPT

References fl::FlowField::FlowField(), fl::FL_NO_EXCEPT, fl::Fx2d::getHeight(), fl::Fx2d::getWidth(), fl::perlin_s16x16::init_fade_lut(), initPerm256(), mPermX, mPermY, mState, syncParams(), and fl::Fx2d::xyMap().

+ Here is the call graph for this function: