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

◆ getu8()

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

Definition at line 127 of file wave_simulation.cpp.

127 {
128 i16 value = geti16(x, y);
129 if (mSim->getHalfDuplex()) {
130 u16 v2 = static_cast<u16>(value);
131 switch (mU8Mode) {
133 return half_duplex_blend_linear(v2);
136 }
137 }
138 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
139}
int y
Definition simple.h:93
int x
Definition simple.h:92
i16 geti16(fl::size x, fl::size y) const
U8EasingFunction mU8Mode
fl::unique_ptr< WaveSimulation2D_Real > mSim
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, x, and y.

+ Here is the call graph for this function: