4 个版本

0.1.3 2020 年 12 月 27 日
0.1.2 2020 年 5 月 29 日
0.1.1 2020 年 5 月 26 日
0.1.0 2020 年 5 月 26 日

#708图像

每月 21 次下载

Apache-2.0

12KB
323

svg_face

这是将 https://github.com/anokhee/visual-synthesizer 简单地移植到 Rust 的版本。

use rand::SeedableRng;

fn main() -> std::io::Result<()> {
    let mut rng = rand_xorshift::XorShiftRng::from_entropy();
    let mut file = std::fs::File::create("face.svg")?;
    svg_face::generate_face(&mut file, &mut rng)
}

face

要亲自尝试,请运行 git clone https://github.com/dabreegster/svg_face && cd svg_face && cargo run --example aface

依赖项

~305KB