Skip to main content

render

Function render 

Source
pub fn render(peaks: &[(f32, f32)], height: u32, color: [u8; 3]) -> RgbaImage
Expand description

Draws peaks as a mirrored waveform, one column per peak, scaled so the loudest peak fills the height (Eagle’s waveform is normalised), on a transparent background.