initials Build Status]

initials crate helps to generate customizable avatars with the initial characters from the names.

Setup and Usage

In your Cargo.toml, add the following:

toml [dependencies] initials = "*"

Extern initials crate and draw the image on your project:

```rust extern crate initials;

use initials::{AvatarBuilder, AvatarResult};

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

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

```

License

MIT