rpg-icon-generator 0.5.0
This package generate RPG items images procedurallye
Requires Python: >=3.6

# RPG icon generator

This package generate RPG items images procedurally, based on [BrianMacIntosh Algoritms](https://github.com/BrianMacIntosh/icon-machine)

## Item type
  - [x] Blade
  - [x] Potion
  - [x] Axes
  - [x] Armor
  - [x] Hammer

## Output example
| Complexity | Rarity equivalent | Blade Examples | Potion Examples | Axe Examples | Armor Examples | Hammer Examples |
| ---------- | ----------------- | -------------- | --------------- |------------- |--------------- |---------------- |
|0           | Common Low       |![Blade_0](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_0.png)    |![Potion_0](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_0.png)    |![Axe_0](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_0.png)    |![Armor_0](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_0.png)    |![Hammer_0](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_0.png)    |
|40          | Common High      |![Blade_40](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_40.png)  |![Potion_40](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_40.png)  |![Axe_40](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_40.png)  |![Armor_40](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_40.png)  |![Hammer_40](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_40.png)  |
|41          | Uncommon Low     |![Blade_41](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_41.png)  |![Potion_41](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_41.png)  |![Axe_41](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_41.png)  |![Armor_41](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_41.png)  |![Hammer_41](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_41.png)  |
|60          | Uncommon High    |![Blade_60](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_60.png)  |![Potion_60](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_60.png)  |![Axe_60](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_60.png)  |![Armor_60](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_60.png)  |![Hammer_60](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_60.png)  |
|61          | Rare Low         |![Blade_61](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_61.png)  |![Potion_61](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_61.png)  |![Axe_61](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_61.png)  |![Armor_61](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_61.png)  |![Hammer_61](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_61.png)  |
|85          | Rare High        |![Blade_85](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_85.png)  |![Potion_85](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_85.png)  |![Axe_85](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_85.png)  |![Armor_85](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_85.png)  |![Hammer_85](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_85.png)  |
|86          | Epic Low         |![Blade_86](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_86.png)  |![Potion_86](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_86.png)  |![Axe_86](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_86.png)  |![Armor_86](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_86.png)  |![Hammer_86](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_86.png)  |
|95          | Epic High        |![Blade_95](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_95.png)  |![Potion_95](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_95.png)  |![Axe_95](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_95.png)  |![Armor_95](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_95.png)  |![Hammer_95](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_95.png)  |
|96          | Outstanding Low  |![Blade_96](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_96.png)  |![Potion_96](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_96.png)  |![Axe_96](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_96.png)  |![Armor_96](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_96.png)  |![Hammer_96](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_96.png)  |
|100         | Outstanding High |![Blade_100](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/blades/blade_100.png)|![Potion_100](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/potions/potion_100.png)|![Axe_100](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/axes/axe_100.png)|![Armor_100](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/armors/armor_100.png)|![Hammer_100](https://raw.githubusercontent.com/Kl0ven/rpg-icon-generator/master/docs/hammers/hammer_100.png)|



## 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

```python
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/')
```

```python
# Same for the other generator
from rpg_icon_generator import Potion_Generator, Axe_Generator, Armor_Generator, Hammer_Generator

```