79 float getf(
size_t x)
const;
86 bool geti16All(
size_t x, int16_t *curr, int16_t *prev, int16_t *diff)
const;
89 int8_t
geti8(
size_t x)
const;
91 uint8_t
getu8(
size_t x)
const;
94 bool has(
size_t x)
const;
98 void setf(
size_t x,
float value);
157 mSim->getDampenening());
163 float getf(
size_t x,
size_t y)
const;
167 int16_t
geti16(
size_t x,
size_t y)
const;
170 bool geti16All(
size_t x,
size_t y, int16_t *curr, int16_t *prev,
171 int16_t *diff)
const;
174 int8_t
geti8(
size_t x,
size_t y)
const;
178 uint8_t
getu8(
size_t x,
size_t y)
const;
181 bool has(
size_t x,
size_t y)
const;
186 void setf(
size_t x,
size_t y,
float value);
188 void seti16(
size_t x,
size_t y, int16_t value);
UISlider speed("Speed", 1.0f, -20.0f, 20.0f, 0.01f)
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
void setf(size_t x, float value)
WaveSimulation1D_Real & real()
fl::scoped_ptr< WaveSimulation1D_Real > mSim
void init(uint32_t length, SuperSample factor, float speed, int dampening)
void setEasingMode(U8EasingFunction mode)
WaveSimulation1D(uint32_t length, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, int dampening=6)
int8_t geti8(size_t x) const
int16_t geti16(size_t x) const
float getf(size_t x) const
~WaveSimulation1D()=default
int getDampenening() const
void setSpeed(float speed)
void setDampening(int damp)
void setSuperSample(SuperSample factor)
void setExtraFrames(uint8_t extra)
uint8_t getu8(size_t x) const
int16_t geti16Previous(size_t x) const
bool geti16All(size_t x, int16_t *curr, int16_t *prev, int16_t *diff) const
uint32_t getLength() const
void setHalfDuplex(bool on)
void setSuperSample(SuperSample factor)
int16_t geti16(size_t x, size_t y) const
uint32_t getWidth() const
void init(uint32_t width, uint32_t height, SuperSample factor, float speed, int dampening)
int getDampenening() const
void setExtraFrames(uint8_t extra)
uint32_t getHeight() const
int8_t geti8(size_t x, size_t y) const
fl::Grid< int16_t > mChangeGrid
fl::scoped_ptr< WaveSimulation2D_Real > mSim
void setSpeed(float speed)
WaveSimulation2D_Real & real()
void setEasingMode(U8EasingFunction mode)
bool geti16All(size_t x, size_t y, int16_t *curr, int16_t *prev, int16_t *diff) const
float getf(size_t x, size_t y) const
uint8_t getu8(size_t x, size_t y) const
void seti16(size_t x, size_t y, int16_t value)
void setf(size_t x, size_t y, float value)
bool has(size_t x, size_t y) const
void setDampening(int damp)
~WaveSimulation2D()=default
WaveSimulation2D(uint32_t W, uint32_t H, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, float dampening=6.0f)
int16_t geti16Previous(size_t x, size_t y) const
void setHalfDuplex(bool on)
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.