MCPcopy Create free account
hub / github.com/FastLED/FastLED / getu8

Method getu8

src/fl/fx/2d/wave.h:320–323  ·  view source on GitHub ↗

@brief Get wave amplitude as 8-bit value @param x X coordinate in grid space @param y Y coordinate in grid space @return Wave amplitude as 0-255 value Returns the current wave amplitude at the given position, scaled and mapped to 0-255 range.

Source from the content-addressed store, hash-verified

318 /// Returns the current wave amplitude at the given position,
319 /// scaled and mapped to 0-255 range.
320 u8 getu8(size_t x, size_t y) const {
321 // Get the 8-bit value at the given coordinates in the wave simulation.
322 return mWaveSim.getu8(x, y);
323 }
324
325 /// @brief Set custom color mapping function
326 /// @param crgbMap Shared pointer to color mapper

Callers 4

mapWaveToLEDsMethod · 0.45
mapWaveToLEDsMethod · 0.45
loopFunction · 0.45
loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected