View Source AnimalAvatarGenerator (Bonfire v0.9.11-social-beta.6)

Generate SVG avatars from a string seed. It should always return the same avatar for the corresponding seed.

Based on https://www.npmjs.com/package/animal-avatar-generator (translated to Elixir, mostly by ChatGPT)

Summary

Functions

avatar(seed, opts \\ [])

avatar_face(seed, opts \\ [])

brows()

clamp(value, min, max)

create_background(round, color, class)

create_blackout(round)

create_svg(size, children)

darken(hex, amount)

ears()

empty_shape()

eyes()

faces()

hairs()

muzzles()

patterns()