Skip to main content

draw_mode

Function draw_mode 

Source
pub fn draw_mode(mode: ModeKey, size: f32, t: f32, opts: &ModeOpts) -> Frame
Expand description

Paint one frame for the given mode into a fresh Frame.

Convenience wrapper around draw_mode_into for one-off calls and tests; it allocates. Render loops should use draw_mode_into instead.