9 releases
0.1.9 | Jan 1, 2023 |
---|---|
0.1.8 | Dec 31, 2022 |
#15 in #avatar
Used in avatars_cli
39KB
563 lines
Avatars
This library can be used to generate pixel art avatars for users.
Usage
You can find usage for it here.
Acknowledgements
This is a rust port of CodeBerg avatars. Algorithms are mostly copied from Codeberg. All credits go to the original authors.
lib.rs
:
This is a Rust port of the Codeberg avatars.
It can be used to generate avatars based on a seed string. The seed string is used to
generate a u64
seed which is then used to generate the avatar.
Example
use avatars::{generate_seed, female_avatar, male_avatar, Mood};
let seed = generate_seed("test");
let f_avatar = female_avatar(seed, &Mood::Sad);
let m_avatar = male_avatar(seed, &Mood::Happy);
Dependencies
~250KB