| Crates.io | yagii |
| lib.rs | yagii |
| version | 0.1.3 |
| created_at | 2018-08-15 16:50:48.822942+00 |
| updated_at | 2018-08-15 19:08:46.775608+00 |
| description | Yet Another Github style Identicon Implementation |
| homepage | |
| repository | https://github.com/sadaie/yagii |
| max_upload_size | |
| id | 79601 |
| size | 22,588 |
YAGII stands for Yet Another Github style Identicon Implementation and is pronounced [jɐɣi].
YAGII can be build with nightly rustc only for now.
// 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());
MIT License.