RPG icon generator
This package generate RPG items images procedurally, based on BrianMacIntosh Algoritms
Item type
- Blade
- Potion
- Axes
- Armor
- Hammer
Output example
| Complexity | Rarity equivalent | Blade Examples | Potion Examples | Axe Examples | Armor Examples | Hammer Examples |
|---|---|---|---|---|---|---|
| 0 | Common Low | |||||
| 40 | Common High | |||||
| 41 | Uncommon Low | |||||
| 60 | Uncommon High | |||||
| 61 | Rare Low | |||||
| 85 | Rare High | |||||
| 86 | Epic Low | |||||
| 95 | Epic High | |||||
| 96 | Outstanding Low | |||||
| 100 | Outstanding High |
installation
pip install rpg-icon-generator
You will need to install Cairo for the images part Checkout this https://pypi.org/project/drawSvg/ to install it
Usage
from rpg_icon_generator import Blade_Generator
generator = Blade_Generator()
seed = datetime.now() # provide a seed for this blade
# the image will be in test/out/[seed].png
# the image will be 32*2 by 32*2 pixels
# complexity ranging from 0 to 100
generator.generate(seed=seed, complexity=50, dimension=32, render_scale=2, output_directory='test/out/')
# Same for the other generator
from rpg_icon_generator import Potion_Generator, Axe_Generator, Armor_Generator, Hammer_Generator
Metadata
Release files for rpg-icon-generator 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rpg_icon_generator-0.5.0.tar.gz | 17.9 kB | Without provenance | Details for rpg_icon_generator-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rpg_icon_generator-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for rpg_icon_generator-0.5.0-py3-none-any.whl |
Total release size: 44.2 kB
Release files / rpg_icon_generator-0.5.0.tar.gz
| Download URL | rpg_icon_generator-0.5.0.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3dffe7bedbcb736c1ca1a10fa4d791e68622cb596df177ed80cbc20d3270198a
|
|
BLAKE2b-256 checksum How to use checksums |
82bd07975bfdf41d0a8bb2073c88af81f9a2054601c1c0fa60388264df9cc501
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / rpg_icon_generator-0.5.0-py3-none-any.whl
| Download URL | rpg_icon_generator-0.5.0-py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ccd84f34c823b70fb7b41a028a654f9e4d2f995f60380eeae4a7f9fe6ca346e
|
|
BLAKE2b-256 checksum How to use checksums |
2e0b6c78add08d06631c8a73c6aacc6410a5d0a0536a7cd27b6c220a6dca5b03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for rpg-icon-generator 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.