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

◆ getu8()

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

Definition at line 353 of file wave_simulation.cpp.

353 {
354 i16 value = geti16(x);
355 if (mSim->getHalfDuplex()) {
356 u16 v2 = static_cast<u16>(value);
357 switch (mU8Mode) {
359 return half_duplex_blend_linear(v2);
362 }
363 }
364 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
365}
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: