Skip to main content

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 Blade_0 Potion_0 Axe_0 Armor_0 Hammer_0
40 Common High Blade_40 Potion_40 Axe_40 Armor_40 Hammer_40
41 Uncommon Low Blade_41 Potion_41 Axe_41 Armor_41 Hammer_41
60 Uncommon High Blade_60 Potion_60 Axe_60 Armor_60 Hammer_60
61 Rare Low Blade_61 Potion_61 Axe_61 Armor_61 Hammer_61
85 Rare High Blade_85 Potion_85 Axe_85 Armor_85 Hammer_85
86 Epic Low Blade_86 Potion_86 Axe_86 Armor_86 Hammer_86
95 Epic High Blade_95 Potion_95 Axe_95 Armor_95 Hammer_95
96 Outstanding Low Blade_96 Potion_96 Axe_96 Armor_96 Hammer_96
100 Outstanding High Blade_100 Potion_100 Axe_100 Armor_100 Hammer_100

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 details)

Uploaded Source

Built Distribution

rpg_icon_generator-0.5.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file rpg_icon_generator-0.5.0.tar.gz.

File metadata

  • Download URL: rpg_icon_generator-0.5.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rpg_icon_generator-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3dffe7bedbcb736c1ca1a10fa4d791e68622cb596df177ed80cbc20d3270198a
MD5 58decf8a7a06eb3642757a217aed1abc
BLAKE2b-256 82bd07975bfdf41d0a8bb2073c88af81f9a2054601c1c0fa60388264df9cc501

See more details on using hashes here.

File details

Details for the file rpg_icon_generator-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: rpg_icon_generator-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for rpg_icon_generator-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ccd84f34c823b70fb7b41a028a654f9e4d2f995f60380eeae4a7f9fe6ca346e
MD5 6e0d7bc38fd20440c144acb519ae671f
BLAKE2b-256 2e0b6c78add08d06631c8a73c6aacc6410a5d0a0536a7cd27b6c220a6dca5b03

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page