Skip to main content

paint

Function paint 

Source
fn paint(w: usize, h: usize, f: impl FnOnce(Rect, &mut Buffer)) -> Vec<String>
Expand description

Render into a fresh w × h buffer and flatten it to rows.