Skip to main content

png

Function png 

Source
pub fn png(
    renderer: &mut Renderer,
    scene: &Scene,
    theme: Theme,
) -> Result<Vec<u8>, String>
Expand description

Paints a scene’s whole drawing at 1× in theme and encodes it as a PNG, or says why it can’t: see Renderer::drawing.