Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An Elixir library for generating GitHub-like identicons

License

NotificationsYou must be signed in to change notification settings

rbishop/identicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Elixir library for generating GitHub-like symmetrical 5x5 identicons.

Usage

Just pass a string orchar_list toIdenticon.render/1. Youwill get back a Base64 encoded string representing youridenticon image.

image=Identicon.render"Elixir"# => a1070f60bb1e600..."

You can just keep using this in memory or write to file and decode into animage:

image=Identicon.render"Elixir":ok=File.write("Elixir.txt",image)
$ cat Elixir.txt| base64 -D -o elixir.png

Todo

  • Support various size/pixel count/background color identicons
  • Make the identicons symmetric like GitHub's (so cool!)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Identicon uses the same license as the Elixir programming language. See thelicensefile formore information.

About

An Elixir library for generating GitHub-like identicons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp