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

◆ hexwave_change()

void fl::third_party::hexwave::hexwave_change ( HexWave * hex,
int32_t reflect,
float peak_time,
float half_height,
float zero_wait )

Change oscillator waveform parameters (takes effect at next cycle boundary)

Parameters
hexPointer to HexWave structure
reflectIs tested as 0 or non-zero
peak_timeIs clamped to 0..1
half_heightIs not clamped
zero_waitIs clamped to 0..1

Definition at line 59 of file stb_hexwave.cpp.hpp.

60{
61 hex->pending.reflect = reflect;
62 hex->pending.peak_time = hexwave_clamp(peak_time,0.0f,1.0f);
63 hex->pending.half_height = half_height;
64 hex->pending.zero_wait = hexwave_clamp(zero_wait,0.0f,1.0f);
65 // put a barrier here to allow changing from a different thread than the generator
66 hex->have_pending = 1;
67}
const hex_t hex
Definition ios.cpp.hpp:6
#define hexwave_clamp(v, a, b)

References FL_NOEXCEPT, fl::hex, and hexwave_clamp.

Referenced by hexwave_create().

+ Here is the caller graph for this function: