yagii

Crates.ioyagii
lib.rsyagii
version0.1.3
sourcesrc
created_at2018-08-15 16:50:48.822942
updated_at2018-08-15 19:08:46.775608
descriptionYet Another Github style Identicon Implementation
homepage
repositoryhttps://github.com/sadaie/yagii
max_upload_size
id79601
size22,588
Sadaie Matsudaira (sadaie)

documentation

https://docs.rs/yagii

README

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.

Commit count: 0

cargo fmt