This repository contains the Collectable Generator. It is a simple tool for generating random collectables from sample pngs, stacking a defined number of layers and exporting the final image as png. OpenCV has been used for the image processing.
testProject:
|
|-- source_layers:
| |
| |-- 00-BG: layer-0
| | |-- BG-GREEN.png
| | |-- BG-NO.png
| |
| |-- 01-CORE: layer-1
| | |-- CORE-BLU.png
| | |-- CORE-GREEN.png
| |
| |-- 02-STAR: layer-2
| | |-- STAR-1.png
| | |-- STAR-2.png
| | |-- STAR-3.png
| | |-- STAR-4.png
|
|-- TBD: exported collectable pngs
This is a class used for creating a collectable project. It contains all the possible attributes, all the methods for the generation and export of all the collectables.
A collectable is identified by a fixed number of attributes. Each attribute represent a layer, each layer has a defined position in the stack. To each layer correspond an attribute.
This is a class for storing all the informations about a single collectable.
- name
- project
- numberID
- hashID: HASH obtained by combination of attributes NEEDED?
- image: IPFS URI (Uniform Resource Identifier)
- attributes
- attribute-1-value
- ...
- attribute-N-value
- author
This is a collection of useful methods.