80 float getf(fl::size
x)
const;
87 bool geti16All(fl::size
x, i16 *curr, i16 *prev, i16 *diff)
const;
95 bool has(fl::size
x)
const;
99 void setf(fl::size
x,
float value);
158 mSim->getDampenening());
166 float getf(fl::size
x, fl::size
y)
const;
170 i16
geti16(fl::size
x, fl::size
y)
const;
173 bool geti16All(fl::size
x, fl::size
y, i16 *curr, i16 *prev,
184 bool has(fl::size
x, fl::size
y)
const;
189 void setf(fl::size
x, fl::size
y,
float value);
191 void seti16(fl::size
x, fl::size
y, i16 value);
WaveSimulation1D_Real & real()
float getf(fl::size x) const
fl::unique_ptr< WaveSimulation1D_Real > mSim
void setEasingMode(U8EasingFunction mode)
~WaveSimulation1D()=default
void setExtraFrames(u8 extra)
i16 geti16Previous(fl::size x) const
int getDampenening() const
void setSpeed(float speed)
void setDampening(int damp)
void setSuperSample(SuperSample factor)
bool geti16All(fl::size x, i16 *curr, i16 *prev, i16 *diff) const
u8 getu8(fl::size x) const
void init(u32 length, SuperSample factor, float speed, int dampening)
WaveSimulation1D(u32 length, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, int dampening=6)
i8 geti8(fl::size x) const
void setHalfDuplex(bool on)
void setf(fl::size x, float value)
bool has(fl::size x) const
i16 geti16(fl::size x) const
void setSuperSample(SuperSample factor)
i8 geti8(fl::size x, fl::size y) const
WaveSimulation2D(u32 W, u32 H, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, float dampening=6.0f)
void seti16(fl::size x, fl::size y, i16 value)
i16 geti16(fl::size x, fl::size y) const
int getDampenening() const
fl::Grid< i16 > mChangeGrid
void setExtraFrames(u8 extra)
void setXCylindrical(bool on)
float getf(fl::size x, fl::size y) const
i16 geti16Previous(fl::size x, fl::size y) const
void setSpeed(float speed)
WaveSimulation2D_Real & real()
void setEasingMode(U8EasingFunction mode)
bool geti16All(fl::size x, fl::size y, i16 *curr, i16 *prev, i16 *diff) const
void setf(fl::size x, fl::size y, float value)
bool has(fl::size x, fl::size y) const
void setDampening(int damp)
~WaveSimulation2D()=default
u8 getu8(fl::size x, fl::size y) const
void init(u32 width, u32 height, SuperSample factor, float speed, int dampening)
fl::unique_ptr< WaveSimulation2D_Real > mSim
void setHalfDuplex(bool on)
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
Implements the FastLED namespace macros.