Expand description
A self-contained RGBA raster DrawBackend (feature canvas).
Unlike the plotters bitmap backend it compiles to wasm and is tuned for
large-N: it rasterises points/lines/polygons/text into an RGBA byte buffer in
pure Rust (text via ab_glyph + the bundled font), so there’s no per-mark
DOM node and no wasm↔JS call per draw. Hand into_rgba() to a <canvas>
(putImageData) in the browser, or into_png() a file natively.
Structs§
- Pixel
Backend - An in-memory RGBA canvas (row-major, 4 bytes/pixel, opaque white ground).