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

Method noisePunch

src/fl/fx/2d/flowfield.cpp.hpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void FlowField::noisePunch(float amplitude, BumpShape shape) {
34 float cx = getWidth() * 0.5f;
35 float cy = getHeight() * 0.5f;
36 float wx = getWidth() * 0.4f;
37 float wy = getHeight() * 0.4f;
38 mNoiseBias.triggerX(cx, wx, amplitude, shape);
39 mNoiseBias.triggerY(cy, wy, amplitude, shape);
40}
41
42void FlowField::noisePunchX(float center, float width, float amplitude,
43 BumpShape shape) {

Callers

nothing calls this directly

Calls 2

triggerXMethod · 0.80
triggerYMethod · 0.80

Tested by

no test coverage detected