diff --git a/README.md b/README.md index e075f7b..7138798 100644 --- a/README.md +++ b/README.md @@ -108,4 +108,39 @@ fn main() { Generates this SVG: -[![Output](src/test_annex_i_micro_qr_as_svg.svg)](src/test_annex_i_micro_qr_as_svg.svg) \ No newline at end of file +[![Output](src/test_annex_i_micro_qr_as_svg.svg)](src/test_annex_i_micro_qr_as_svg.svg) + +## Unicode string generation + +```rust +use qrcode::QrCode; + +fn main() { + let code = QrCode::new("mow mow").unwrap(); + let image = code.render::() + .dark_color(0) + .light_color(1) + .build(); + println!("{}", image); +} +``` + +Generates this output: + +``` +█████████████████████████████ +█████████████████████████████ +████ ▄▄▄▄▄ █ ▀▀▀▄█ ▄▄▄▄▄ ████ +████ █ █ █▀ ▀ ▀█ █ █ ████ +████ █▄▄▄█ ██▄ ▀█ █▄▄▄█ ████ +████▄▄▄▄▄▄▄█ ▀▄▀ █▄▄▄▄▄▄▄████ +████▄▀ ▄▀ ▄ █▄█ ▀ ▀█ █▄ ████ +████▄██▄▄▀▄▄▀█▄ ██▀▀█▀▄▄▄████ +█████▄▄▄█▄▄█ ▀▀▄█▀▀▀▄█▄▄████ +████ ▄▄▄▄▄ █ ▄▄██▄ ▄ ▀▀████ +████ █ █ █▀▄▄▀▄▄ ▄▄▄▄ ▄████ +████ █▄▄▄█ █▄ █▄▀▄▀██▄█▀████ +████▄▄▄▄▄▄▄█▄████▄█▄██▄██████ +█████████████████████████████ +▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +``` \ No newline at end of file