Skip to content

icgw/identicons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Github-Like Identicon Generator

Requirement

  • Python 3.x
  • PIL

Eaxmple

  • identicons.py contains the class Identicon.
from identicons import Identicon

# Set Your User id
id = "Hello"
# Initial an icon. Identicon(id, GridSize = 60, BackGround = "#f0f0f0")
demo = Identicon(id)
# Generate the icon
demo.generate()
# Show the icon
demo.show()
# Output the icon (PNG) to the current derectory. filename is id.png.
demo.output()
  • The picture below is an identicon of "Hello" generating by the above method.

image

About

👻 Github-Like Identicons Generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages