forked from varia/varia.website
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
404 B
17 lines
404 B
7 years ago
|
identicon.py: identicon python implementation.
|
||
|
==============================================
|
||
|
:Author:Shin Adachi <shn@glucose.jp>
|
||
|
|
||
|
## usage
|
||
|
|
||
|
### commandline
|
||
|
|
||
|
python identicon.py [code]
|
||
|
|
||
|
### python
|
||
|
|
||
|
import identicon
|
||
|
identicon.render_identicon(code, size)
|
||
|
|
||
|
Return a PIL Image class instance which have generated identicon image.
|
||
|
`size` specifies patch size. Generated image size is 3 * `size`.
|