pub fn screenshot<P: Program + 'static>( program: &P, theme: &P::Theme, viewport: impl Into<Size>, scale_factor: f32, duration: Duration, ) -> Screenshot
Takes a screenshot of the given Program with the given theme, viewport, and scale factor after running it for the given Duration.
Program
Duration