A Rust library for generating SVG avatars from identifiers.
use svg_avatars::{Rings, SvgAvatarBuilder};
fn main() {
let svg = SvgAvatarBuilder::new()
.identifier("foo")
.rings(Rings::Three)
.stroke_color("black")
.build();
svg.save("bar.svg").unwrap();
}
This produces the bar.svg
file with the following content:
MIT; see the LICENSE.txt file.