IdenticonSvg

An Elixir library to generate identicons in SVG format, so they can be inlined in HTML.

Features

Installation

The package is available in Hex and can be installed by adding identicon_svg to your list of dependencies in mix.exs:

def deps do
  [
    {:identicon_svg, "~> 0.9.4"}
  ]
end

Recent changes

New since v0.9.0

New since v0.8.0

Setting bg_color to one of the following 3 atom values sets the color of the background squares to the corresponding RGB-complementary color of the automatically-defined foreground color, with the default (1.0) or requested opacity:

Configuration

No configuration required.

Documentation

The docs can be found at https://hexdocs.pm/identicon_svg.

There's also a discussion thread on elixirforum.com.

TODO (maybe, one day)