1 unstable release
0.1.3 | Aug 15, 2018 |
---|---|
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#7 in #identicon
22KB
384 lines
YAGII
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.
lib.rs
:
YAGII
YAGII stands for Yet Another Github style Identicon Implementation and is pronounced [jɐɣi].
Dependencies
~14MB
~112K SLoC