Skip to main content

mono_bars

Function mono_bars 

Source
pub fn mono_bars(
    hist: &AudioHistogram,
    layout: &WaveformLayout,
) -> Vec<WaveformBarRect>
Expand description

Layout one mono histogram into a list of bar rectangles.

ยงPanics

Panics if layout.bar_width <= 0 or layout.max_height <= 0. Both are caller errors that would produce degenerate geometry.