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

Method setf

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

@brief Set wave amplitude at a specific grid position @param x X coordinate in grid space @param y Y coordinate in grid space @param value Wave amplitude (0.0 to 1.0) Use this to create a wave disturbance at a specific point. Value of 1.0 creates maximum amplitude wave that will propagate outward.

Source from the content-addressed store, hash-verified

293 /// Use this to create a wave disturbance at a specific point.
294 /// Value of 1.0 creates maximum amplitude wave that will propagate outward.
295 void setf(size_t x, size_t y, float value) {
296 // Set the value at the given coordinates in the wave simulation.
297 mWaveSim.setf(x, y, value);
298 }
299
300 /// @brief Add wave amplitude to existing value at a position
301 /// @param x X coordinate in grid space

Callers 6

addfMethod · 0.45
FL_TEST_FILEFunction · 0.45
triggerRippleFunction · 0.45
triggerWaveRippleFunction · 0.45
triggerRippleFunction · 0.45
triggerRippleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected