Crates.io | hash_avatar |
lib.rs | hash_avatar |
version | 0.1.5 |
source | src |
created_at | 2021-05-19 01:23:20.178567 |
updated_at | 2021-05-19 01:45:35.598301 |
description | rust生成随机头像的库 |
homepage | https://github.com/t924417424/rust_hash_avatar |
repository | https://github.com/t924417424/rust_hash_avatar |
max_upload_size | |
id | 399247 |
size | 21,877 |
use hash_avatar::Generator;
fn main() {
Generator::new()
.create()
.save_to_png("fractal.png")
.unwrap();
Generator::new()
.set_img_size(250)
.set_padding(10)
.set_block_num(8)
.create()
.save_to_png("fractal2.png")
.unwrap();
}
git pull https://github.com/t924417424/rust_hash_avatar.git master
cd rsut_hash_avatar
cargo run --example test