Skip to main content

render_png

Function render_png 

Source
pub fn render_png(spec: &ChartSpec, opts: KittyOpts) -> Option<Vec<u8>>
Expand description

Render spec to a PNG byte vector. Returns None on any drawing or encoding failure; callers decide whether to substitute a text fallback.