https://github.com/onerbs/identy
Generate gray-scale icons
https://github.com/onerbs/identy
Last synced: 5 months ago
JSON representation
Generate gray-scale icons
- Host: GitHub
- URL: https://github.com/onerbs/identy
- Owner: onerbs
- License: mit
- Created: 2020-08-01T06:14:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T12:59:05.000Z (almost 6 years ago)
- Last Synced: 2025-09-22T15:48:03.515Z (9 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# identy
Generate grayscale identity icons.
## Usage
```python
import identy
print(identy.from_string('identy', v=1))
print()
print(identy.random().png().base64str())
# You can save the icon
identy.random().png(256).save('/path/to/file.png')
```
████████████████
████░░ ░░████
██▓▓▓▓▓▓▓▓▓▓▓▓██
██▒▒▒▒░░░░▒▒▒▒██
██▒▒▒▒░░░░▒▒▒▒██
██▓▓▓▓▓▓▓▓▓▓▓▓██
████░░ ░░████
████████████████
iVBORw0KGgoAAAANSUh...
> __Note__: The `str` representation of the icon may differ from the generated png image.