chartletv0.21.0chartlet.casoon.de

← All examples

QR code for a link

A link as a QR code of version 5, drawn as a small, deterministic SVG: one unit per module, a quiet zone of four modules and the title as the accessible name. chartlet::qr is a Rust API, not a chart type — there is no specification and no command-line option for it.

QR code for a link

examples/qr/link.svg
use chartlet::qr::{ErrorCorrection, QrCode};

let code = QrCode::encode("https://casoon.github.io/chartlet/", ErrorCorrection::Medium)?;
let svg = code.to_svg("Link to the chartlet documentation", 4);
Link to the chartlet documentation
  • QR code
  • Link a page from print