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