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

Detailed Description

Definition at line 120 of file wave_simulation.h.

#include <wave_simulation.h>

+ Collaboration diagram for fl::WaveSimulation2D:

Public Member Functions

 WaveSimulation2D (u32 W, u32 H, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, float dampening=6.0f)
 
 ~WaveSimulation2D ()=default
 
int getDampenening () const
 
float getf (fl::size x, fl::size y) const
 
u32 getHeight () const
 
i16 geti16 (fl::size x, fl::size y) const
 
bool geti16All (fl::size x, fl::size y, i16 *curr, i16 *prev, i16 *diff) const
 
i16 geti16Previous (fl::size x, fl::size y) const
 
i8 geti8 (fl::size x, fl::size y) const
 
float getSpeed () const
 
u8 getu8 (fl::size x, fl::size y) const
 
u32 getWidth () const
 
bool has (fl::size x, fl::size y) const
 
void init (u32 width, u32 height, SuperSample factor, float speed, int dampening)
 
WaveSimulation2D_Realreal ()
 
void setDampening (int damp)
 
void setEasingMode (U8EasingFunction mode)
 
void setExtraFrames (u8 extra)
 
void setf (fl::size x, fl::size y, float value)
 
void setHalfDuplex (bool on)
 
void seti16 (fl::size x, fl::size y, i16 value)
 
void setSpeed (float speed)
 
void setSuperSample (SuperSample factor)
 
void setXCylindrical (bool on)
 
void update ()
 

Private Attributes

fl::Grid< i16 > mChangeGrid
 
u8 mExtraFrames = 0
 
u32 mMultiplier = 1
 
u32 mOuterHeight
 
u32 mOuterWidth
 
fl::unique_ptr< WaveSimulation2D_RealmSim
 
U8EasingFunction mU8Mode = WAVE_U8_MODE_LINEAR
 

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