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

◆ setf()

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

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

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

References fl::clamp(), 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: