64 float getf(fl::size
x)
const;
81 u16 v2 =
static_cast<u16
>(value);
83 return static_cast<u8>(v2 >> 8);
85 return static_cast<u8>(
86 ((
static_cast<u16
>(value) + 32768)) >> 8);
91 bool has(fl::size
x)
const;
95 void set(fl::size
x,
float value);
141 float getf(fl::size
x, fl::size
y)
const;
145 i16
geti16(fl::size
x, fl::size
y)
const;
160 u16 v2 =
static_cast<u16
>(value);
162 return static_cast<u8>(v2 >> 8);
164 return static_cast<u8>(
165 ((
static_cast<u16
>(value) + 32768)) >> 8);
172 bool has(fl::size
x, fl::size
y)
const;
177 void setf(fl::size
x, fl::size
y,
float value);
179 void seti16(fl::size
x, fl::size
y, i16 value);
i16 geti16(fl::size x) const
i16 geti16Previous(fl::size x) const
void set(fl::size x, float value)
bool has(fl::size x) const
i8 geti8(fl::size x) const
int getDampenening() const
void setHalfDuplex(bool on)
u8 getu8(fl::size x) const
WaveSimulation1D_Real(u32 length, float speed=0.16f, int dampening=6)
void setSpeed(float something)
bool getHalfDuplex() const
~WaveSimulation1D_Real()=default
float getf(fl::size x) const
void setDampening(int damp)
bool getHalfDuplex() const
void setf(fl::size x, fl::size y, float value)
i16 geti16Previous(fl::size x, fl::size y) const
~WaveSimulation2D_Real()=default
u8 getu8(fl::size x, fl::size y) const
i8 geti8(fl::size x, fl::size y) const
void setHalfDuplex(bool on)
WaveSimulation2D_Real(u32 W, u32 H, float speed=0.16f, float dampening=6.0f)
i16 geti16(fl::size x, fl::size y) const
int getDampenening() const
void setSpeed(float something)
void setXCylindrical(bool on)
fl::vector< i16, fl::allocator_psram< i16 > > grid1
float getf(fl::size x, fl::size y) const
fl::vector< i16, fl::allocator_psram< i16 > > grid2
void seti16(fl::size x, fl::size y, i16 value)
bool has(fl::size x, fl::size y) const
void setDampening(int damp)
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
Implements the FastLED namespace macros.
i16 float_to_fixed(float f)
float fixed_to_float(i16 f)
HeapVector< T, Allocator > vector