yagii 0.1.3

Yet Another Github style Identicon Implementation
docs.rs failed to build yagii-0.1.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

YAGII

Crates.io docs.rs Build Status GitHub license

YAGII stands for Yet Another Github style Identicon Implementation and is pronounced [jɐɣi].

YAGII can be build with nightly rustc only for now.

Usage

// If you use Rust edition 2015 you need to write `extern crate`.
// extern crate yagii;
use yagii::{Dimensions, ChunkConfig, generate_identicon};

// Chunk is 70 pixel square.
let chunk_config = ChunkConfig::Square(70);
// 5 chunks square.
let dimensions = Dimensions(5, 5);

let image = generate_identicon("some data".as_bytes(), chunk_config, dimensions);

assert!(image.is_ok());

License

MIT License.