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

◆ getu8()

u8 fl::WaveSimulation2D::getu8 ( fl::size x,
fl::size y ) const

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

142 {
143 i16 value = geti16(x, y);
144 if (mSim->getHalfDuplex()) {
145 u16 v2 = static_cast<u16>(value);
146 switch (mU8Mode) {
148 return half_duplex_blend_linear(v2);
151 }
152 }
153 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
154}
i16 geti16(fl::size x, fl::size y) const
U8EasingFunction mU8Mode
fl::unique_ptr< WaveSimulation2D_Real > mSim
unsigned char u8
Definition stdint.h:131
constexpr int type_rank< T >::value

References geti16(), mSim, mU8Mode, fl::type_rank< T >::value, fl::WAVE_U8_MODE_LINEAR, fl::WAVE_U8_MODE_SQRT, fl::x, and fl::y.

+ Here is the call graph for this function: