/radicle-avatar

Avatar generation library

Primary LanguageRustApache License 2.0Apache-2.0

radicle-avatar

A library for generating emoji-color combinations which serve as avatars in Radicle clients.

Example:

assert_eq!(
    Avatar::from("cloudhead", Usage::Identity),
    Avatar {
        emoji: "🌻".to_string(),
        background: Color::new(24, 105, 216)
    }
);

Have a look at the tests for more hints on how to use this library.