81 float getf(
size_t x)
const;
88 bool geti16All(
size_t x, int16_t *curr, int16_t *prev, int16_t *diff)
const;
91 int8_t
geti8(
size_t x)
const;
93 uint8_t
getu8(
size_t x)
const;
96 bool has(
size_t x)
const;
100 void setf(
size_t x,
float value);
104 sim->setHalfDuplex(on);
161 sim->getDampenening());
167 float getf(
size_t x,
size_t y)
const;
171 int16_t
geti16(
size_t x,
size_t y)
const;
174 bool geti16All(
size_t x,
size_t y, int16_t *curr, int16_t *prev,
175 int16_t *diff)
const;
178 int8_t
geti8(
size_t x,
size_t y)
const;
182 uint8_t
getu8(
size_t x,
size_t y)
const;
185 bool has(
size_t x,
size_t y)
const;
190 void setf(
size_t x,
size_t y,
float value);
192 void seti16(
size_t x,
size_t y, int16_t value);
195 sim->setHalfDuplex(on);
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
void setf(size_t x, float value)
WaveSimulation1D_Real & real()
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
fl::scoped_ptr< WaveSimulation1D_Real > sim
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
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)
fl::scoped_ptr< WaveSimulation2D_Real > sim
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)
Implements the FastLED namespace macros.
Implements a simple red square effect for 2D LED grids.