Identicon is a Hex package that can be used to generate Identicons, a form of avatar, like the ones on GitHub.
To generate a new Identicon:
Identicon.main("elixir")
This will generate a new Identicon with the filename "elixir.png" within your root directory. "elixir" can be replaced with any string, often times usernames or first names are used to generate the needed hash-value for the unique Identicon.
If available in Hex, the package can be installed
by adding identicon
to your list of dependencies in mix.exs
:
def deps do
[{:identicon, "~> 0.1.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/identicon.