Skip to main content

Crate glyphatar

Crate glyphatar 

Source
Expand description

Deterministic SVG identicons (“glyph avatars”).

let svg = glyphatar::svg(b"some public key bytes", 64);
assert!(svg.starts_with("<svg"));

§Stability

The same input renders the same image within a major version. Any change to the picture for a given input is a breaking change.

Structs§

Glyphatar
A generated glyph, which can be rendered at any size.

Functions§

svg
Generate an SVG glyph for input, size pixels square.