mirror of
https://codeberg.org/Codeberg/avatars.git
synced 2023-08-10 21:12:50 +03:00
Golang port of DiceBear Avatars
example | ||
.gitignore | ||
avatars.go | ||
go.mod | ||
README.md |
Golang port of DiceBear Avatars, which in turn were inspired by 8biticon avatars
Usage
import codeberg.org/Codeberg/avatars
and use string svg = avatars.MakeAvatar(seed)
Build & Use Example
# will build the binary
go build -o avatars example/main.go
# Create a random avatar and write it to /tmp/avatar.svg
./avatars my-special-seed-string > /tmp/avatar.svg
# Open SVG file with default image viewer
xdg-open /tmp/avatar.svg