| 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); |
nothing calls this directly
no test coverage detected