a teeny tiny deterministic icon generating library for elixir
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
katherine 0797b9df8f initial commit! ヽ(^o^)丿 2 år sedan
lib initial commit! ヽ(^o^)丿 2 år sedan
test initial commit! ヽ(^o^)丿 2 år sedan
Elixir.png initial commit! ヽ(^o^)丿 2 år sedan
LICENSE initial commit! ヽ(^o^)丿 2 år sedan
README.md initial commit! ヽ(^o^)丿 2 år sedan
example.png initial commit! ヽ(^o^)丿 2 år sedan
mix.exs initial commit! ヽ(^o^)丿 2 år sedan

README.md

Identicon

example output

a cute little idea stolen from rbishop. provides a function for generating an “identicon” (an icon produced from the hash of a given string). please feel free to steal from me as well! ^_^

this version is a little cleaner and uses softer, “web-safe” foreground colours on a customisable background.

compile in the usual manner:

mix deps.get
mix compile

and then if you just want to test it out (with your name or whatever XD), try something like:

iex -S mix
iex(1)> File.write "Elixir.png", Identicon.gen("Elixir", {36, 32, 36})

which produces:

generated icon