screenshot

Function screenshot 

Source
pub fn screenshot<P: Program + 'static>(
    program: &P,
    theme: &P::Theme,
    viewport: impl Into<Size>,
    scale_factor: f32,
    duration: Duration,
) -> Screenshot
Expand description

Takes a screenshot of the given Program with the given theme, viewport, and scale factor after running it for the given Duration.