1
0
Fork 0
forked from AbleOS/ableos
ableos_time/qrcode-rust/src/main.rs

12 lines
335 B
Rust
Raw Normal View History

2022-07-29 09:46:09 -05:00
use qrcode::{render::unicode, QrCode};
fn main() {
let code = QrCode::new("https://www.youtube.com/watch?v=p7YXXieghto").unwrap();
let image = code
.render::<unicode::Dense1x2>()
.dark_color(unicode::Dense1x2::Light)
.light_color(unicode::Dense1x2::Dark)
.build();
println!("{}", image);
}