/elixir-identicon-generator

Module that generates an "identicon" png image from a string

Primary LanguageElixir

Identicon

Generates random identicons based on string inputs.

Identicons are 5x5 grids that are 250px wide x 250px tall (50px x 50px squares), similar to the default image that Github will assign you if you create a profile without an image.

For example: Identicon.main("asdf") creates this png:

Following along with The Complete Elixir And Phoenix Bootcamp and Tutorial

Installation

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.