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

◆ getu8()

u8 fl::WaveSimulation1D::getu8 ( fl::size x) const

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

360 {
361 i16 value = geti16(x);
362 if (mSim->getHalfDuplex()) {
363 u16 v2 = static_cast<u16>(value);
364 switch (mU8Mode) {
366 return half_duplex_blend_linear(v2);
369 }
370 }
371 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
372}
fl::unique_ptr< WaveSimulation1D_Real > mSim
U8EasingFunction mU8Mode
i16 geti16(fl::size x) const
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, and fl::x.

Referenced by ~WaveSimulation1D().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: