menu
audio_visualizer package
documentation
visualizers/rainbow_visualizer.dart
AudioBlockPainter
getNumBlocks method
getNumBlocks method
dark_mode
light_mode
getNumBlocks
method
int
getNumBlocks
(
int
audioValue
)
Implementation
int getNumBlocks(int audioValue) { return (audioValue / 255 * 32).round().clamp(1, 32); }
audio_visualizer package
documentation
visualizers/rainbow_visualizer
AudioBlockPainter
getNumBlocks method
AudioBlockPainter class