Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rpg-icon-generator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpg-icon-generator

This package generate RPG items images procedurallye

  • 0.5.0
  • PyPI
  • Socket score

Maintainers
1

RPG icon generator

This package generate RPG items images procedurally, based on BrianMacIntosh Algoritms

Item type

  • Blade
  • Potion
  • Axes
  • Armor
  • Hammer

Output example

ComplexityRarity equivalentBlade ExamplesPotion ExamplesAxe ExamplesArmor ExamplesHammer Examples
0Common LowBlade_0Potion_0Axe_0Armor_0Hammer_0
40Common HighBlade_40Potion_40Axe_40Armor_40Hammer_40
41Uncommon LowBlade_41Potion_41Axe_41Armor_41Hammer_41
60Uncommon HighBlade_60Potion_60Axe_60Armor_60Hammer_60
61Rare LowBlade_61Potion_61Axe_61Armor_61Hammer_61
85Rare HighBlade_85Potion_85Axe_85Armor_85Hammer_85
86Epic LowBlade_86Potion_86Axe_86Armor_86Hammer_86
95Epic HighBlade_95Potion_95Axe_95Armor_95Hammer_95
96Outstanding LowBlade_96Potion_96Axe_96Armor_96Hammer_96
100Outstanding HighBlade_100Potion_100Axe_100Armor_100Hammer_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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc