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

◆ getu8()

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

Definition at line 316 of file wave_simulation.cpp.

316 {
317 i16 value = geti16(x);
318 if (mSim->getHalfDuplex()) {
319 u16 v2 = static_cast<u16>(value);
320 switch (mU8Mode) {
322 return half_duplex_blend_linear(v2);
325 }
326 }
327 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
328}
int x
Definition simple.h:92
fl::unique_ptr< WaveSimulation1D_Real > mSim
U8EasingFunction mU8Mode
i16 geti16(fl::size x) const
unsigned char u8
Definition int.h:17
@ WAVE_U8_MODE_LINEAR
@ WAVE_U8_MODE_SQRT

References geti16(), mSim, mU8Mode, fl::WAVE_U8_MODE_LINEAR, fl::WAVE_U8_MODE_SQRT, and x.

+ Here is the call graph for this function: