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

◆ getu8()

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

Definition at line 134 of file wave_simulation.cpp.

134 {
135 i16 value = geti16(x, y);
136 if (mSim->getHalfDuplex()) {
137 u16 v2 = static_cast<u16>(value);
138 switch (mU8Mode) {
140 return half_duplex_blend_linear(v2);
143 }
144 }
145 return static_cast<u8>(((static_cast<u16>(value) + 32768)) >> 8);
146}
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: