FastLED
3.9.15
Loading...
Searching...
No Matches
◆
addf()
void fl::WaveFx::addf
(
size_t
x
,
size_t
y
,
float
value
)
inline
Definition at line
124
of file
wave.h
.
124
{
125
// Add a value at the given coordinates in the wave simulation.
126
float
sum = value +
mWaveSim
.getf(
x
,
y
);
127
mWaveSim
.setf(
x
,
y
,
MIN
(1.0f, sum));
128
}
x
uint32_t x[NUM_LAYERS]
Definition
Fire2023.ino:80
y
uint32_t y[NUM_LAYERS]
Definition
Fire2023.ino:81
fl::WaveFx::mWaveSim
WaveSimulation2D mWaveSim
Definition
wave.h:164
MIN
#define MIN(a, b)
Definition
math_macros.h:8
References
MIN
,
mWaveSim
,
x
, and
y
.
fl
WaveFx
Generated on Fri Apr 18 2025 03:39:32 for FastLED by
1.13.2