This package generate RPG items images procedurallye
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rpg_icon_generator-0.5.0.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for rpg_icon_generator-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ccd84f34c823b70fb7b41a028a654f9e4d2f995f60380eeae4a7f9fe6ca346e |
|
MD5 | 6e0d7bc38fd20440c144acb519ae671f |
|
BLAKE2b-256 | 2e0b6c78add08d06631c8a73c6aacc6410a5d0a0536a7cd27b6c220a6dca5b03 |