Skip to content

Sinha-Ujjawal/Wangdenticon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wangdenticon

Inspired by Github's identicons and tsoding wang-tiles created a project to generate "Wangdenticon"

Getting Started

You need python 3.7.6 or higher to run the scripts

  1. Install dependencies
pip install -r requirements.txt
  1. Usage
from wangdenticon import make_wangdenticon

YOUR_SIZE = 255
GRIDSIZE = 6 # 6 is recommended
BGCOLOR = (0, 0, 0)

# will create a (YOUR_SIZE x YOUR_SIZE) Pillow Image
img = make_wangdenticon(
    name="YOUR NAME",
    size=YOUR_SIZE,
    gridsize=GRIDSIZE,
    bgcolor=BGCOLOR,
    invert=False,
)
img.show()

Licence

Licensed under MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages