svg_face

Crates.iosvg_face
lib.rssvg_face
version0.1.3
sourcesrc
created_at2020-05-26 22:30:16.681915
updated_at2020-12-27 03:36:06.757653
descriptionGenerates random SVG faces
homepage
repositoryhttps://github.com/dabreegster/svg_face
max_upload_size
id246399
size30,019
Dustin Carlino (dabreegster)

documentation

README

svg_face

This is a straightforward port of https://github.com/anokhee/visual-synthesizer to 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

To try it yourself, run git clone https://github.com/dabreegster/svg_face && cd svg_face && cargo run --example aface.

Commit count: 10

cargo fmt