Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 441 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 441 Bytes

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.