initials-revamped

initials-revamped is a fork from the initials crate that allows generating customizable avatars with the initial characters from arbitrary name values.

Fork To-Do List

Setup and Usage

In your Cargo.toml, add the following:

toml [dependencies] initials_revamped = "*"

```rust use initials_crate::{AvatarBuilder, AvatarResult};

fn avatar() -> AvatarResult { AvatarBuilder::new("Avatar") .withfontcolor("#000000")? .withbackgroundcolor("#FAFAFA")? .withwidth(200)? .withheight(200) }

fn main() { let avatar = avatar().unwrap(); let image = avatar.draw(); // use the generated image }

```

See Documentation (original docs - still haven't written my own)

Local Server

Doc

License

MIT

Credits

All the credit goes to Onur Sönmez, the original creator of this awesome lib.