identicon-rs 7.2.1

identicon-rs is a library built around custom generation of identicon images.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use identicon_rs::Identicon;
use identicon_rs::error::IdenticonError;

fn main() -> Result<(), IdenticonError> {
    let conways_glider = String::from("conways-glider");
    let test_string = "identicon_rs";

    // Stored example
    let identicon_conways_glider = Identicon::new(&conways_glider);
    identicon_conways_glider.save_image("output_1.png")?;

    // Chained example with no border
    Identicon::new(test_string)
        .set_border(0)
        .save_image("output_2.png")?;
    Ok(())
}