pub fn png(lattice: &Lattice, rect: Rect, scale: usize, cut: Cut) -> Vec<u8> ⓘExpand description
Paints rect of lattice at scale pixels a site, as PNG bytes.
Cut::Square gives an opaque RGB image; Cut::Round an RGBA one
whose corners are transparent, with the edge of the disc antialiased
against the transparency (the one place in this crate that draws
something the simulation did not, because a hard-stepped circle at 64
pixels looks broken in a way a lattice does not).