FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setf()

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

Definition at line 211 of file wave_simulation.cpp.hpp.

211 {
212 if (!has(x, y))
213 return;
214
215 value = fl::clamp(value, 0.0f, 1.0f);
217 seti16(x, y, v16);
218}
bool has(fl::size x, fl::size y) const FL_NO_EXCEPT
void seti16(fl::size x, fl::size y, i16 value) FL_NO_EXCEPT
i16 float_to_fixed(float f) FL_NO_EXCEPT
constexpr int type_rank< T >::value
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT

References fl::clamp(), fl::FL_NO_EXCEPT, fl::wave_detail::float_to_fixed(), has(), seti16(), fl::type_rank< T >::value, fl::x, and fl::y.

+ Here is the call graph for this function: