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

Method Value

src/noisegen.h:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 NoiseGenerator(fl::i32 itScale, fl::i32 timeMul) : iteration_scale(itScale), time_multiplier(timeMul) {}
18
19 fl::u8 Value(fl::i32 i, unsigned long time_ms) const {
20 fl::u32 input = iteration_scale * i + time_ms * time_multiplier;
21 fl::u16 v1 = inoise16(input);
22 return fl::u8(v1 >> 8);
23 }
24
25 int LedValue(fl::i32 i, unsigned long time_ms) const {
26 int val = Value(i, time_ms);

Callers

nothing calls this directly

Calls 1

inoise16Function · 0.85

Tested by

no test coverage detected