unicode: updated readme
This commit is contained in:
parent
3d1d6883f2
commit
6f407492ec
|
@ -114,13 +114,13 @@ Generates this SVG:
|
|||
|
||||
```rust
|
||||
use qrcode::QrCode;
|
||||
use qrcode::render::utf8;
|
||||
use qrcode::render::unicode;
|
||||
|
||||
fn main() {
|
||||
let code = QrCode::new("mow mow").unwrap();
|
||||
let image = code.render::<utf8::Unicode1x2>()
|
||||
.dark_color(utf8::Unicode1x2::Light)
|
||||
.light_color(utf8::Unicode1x2::Dark)
|
||||
let image = code.render::<unicode::Dense1x2>()
|
||||
.dark_color(unicode::Dense1x2::Light)
|
||||
.light_color(unicode::Dense1x2::Dark)
|
||||
.build();
|
||||
println!("{}", image);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue