extern crate initials_revamped; use initials_revamped::{AvatarBuilder, AvatarResult}; fn avatar() -> AvatarResult { AvatarBuilder::new("John Doe") .with_length(2)? .with_contrast_ratio(3.) } pub fn main() { let avatar = avatar().unwrap(); let image = avatar.draw(); image.save("test.jpg").unwrap(); }