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

◆ Value()

fl::u8 NoiseGenerator::Value ( fl::i32 i,
unsigned long time_ms ) const
inline

Definition at line 19 of file noisegen.h.

19 {
20 fl::u32 input = iteration_scale * i + time_ms * time_multiplier;
21 fl::u16 v1 = inoise16(input);
22 return fl::u8(v1 >> 8);
23 }
fl::u16 inoise16(fl::u32 x, fl::u32 y, fl::u32 z, fl::u32 t)
unsigned char u8
Definition stdint.h:131
unsigned long time_multiplier
Definition noisegen.h:14
fl::i32 iteration_scale
Definition noisegen.h:13

References inoise16(), iteration_scale, and time_multiplier.

Referenced by LedValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: