Generate an identicon from a string.
Creates an identicon with your own hasher/colorer where the string is passed into both the hasher and colorer. Here's how to create an identicon that's always the color red:
import Color exposing (rgb255) -- from avh4/elm-color
import Identicon exposing (custom, defaultHash)
import Html exposing (Html)
view : Html msg
view =
custom defaultHash (always <| rgb255 255 0 0) "200px" "Hello Identicon!"One-at-a-Time Hash
Taken from http://www.burtleburtle.net/bob/hash/doobs.html.
Generate a color from a string
This generates the same color that would be used in the identicon.
Generate a identicon from a string