@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.
| 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 |
no outgoing calls
no test coverage detected