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

◆ getu8()

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

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

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

References fl::FL_NO_EXCEPT, 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: