FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setf()

void fl::WaveSimulation2D::setf ( fl::size x,
fl::size y,
float value )

Definition at line 190 of file wave_simulation.cpp.

190 {
191 if (!has(x, y))
192 return;
193
194 value = fl::clamp(value, 0.0f, 1.0f);
195 i16 v16 = wave_detail::float_to_fixed(value);
196 seti16(x, y, v16);
197}
int y
Definition simple.h:93
int x
Definition simple.h:92
void seti16(fl::size x, fl::size y, i16 value)
bool has(fl::size x, fl::size y) const
FASTLED_FORCE_INLINE T clamp(T value, T min, T max)
Definition clamp.h:10

References fl::clamp(), fl::wave_detail::float_to_fixed(), has(), seti16(), x, and y.

+ Here is the call graph for this function: