NFT Generator: A modular NFT generator application

Overview

NFT Generator

Open in Visual Studio Code

A simple passion project done with the role to learn a bit about how images are processed by computers. A modular NFT generator application that allows you to create NFT's by diving each accesorry of an NFT into more parts. For example, a character with that has a hat and glasses, can be divided into:

- background
- the character itself
- the character's facial parts(ex eyes, mouth etc)
- the glases
- the hat

Because of this modularity, its very easy to simply change the code and the structure a bit to create a completely new collection of unique NFTS.

Dependencies

How to use it

For every part you want you want to use, create a folder for it and store its variants there and edit the allready existing code to your needs. Example, you want to put earrings to your character:

\nft_generator
    \earrings
        ---earring_0.png
        ---earring_1.png
        ---earring_2.png
        ---earring_3.png
        ................
        ................

Note: If youre gonna have an optional part, that will not always be present on all NFTs, I Suggest that you create an empty .png with index 0 and call that file for the NFT's that will not have that optional part, just to make things easier.

How to create your own parts

If you want to create new parts for yourself, you must respect few rules such that the program will behave normally:

  • if you want that part to be colored a specific color when you run the program you must create all the pixels that represent the part with only a single RGB channel and then specify that channel in the program to be colored the color you desire.
  • if you use RGB values like (255,2,3) the program will not change that pixel, since it can see only 1 color channel everytime, so if you want to change that pixel, you can use something like (255, 0,0) and select the red channel.(you can also do shading by altering the value in that channel youre using, it doesnt particulary need to be 255, it can be 200 for example and that pixel will be darker in color.)
  • if you want more complex parts, you can use 3 colors , red , green, blue and call the function to give it color 3 times for all 3 color channels. Example, you want to make a hat of a specific color in the final product, so you make the hat red in the hat.png, but then in some hairstyles, the hat doesnt cover the hair, so you make the near background of the hat.png with blue and then call the function to give it color, but with the blue color channel and give it the same color as the background color of the NFT and so, there isnt any more hair getting out of the hat.
  • if you want a color to not be altered by the color function , simply change the RGB values such that there arent 2 channels with 0 as values.Example: red hat (255,0,0) ---> (255,1,0),

Content of this repo:

  • Example code with some predefined parts
  • Shading Randomizer for helping when creating new parts
Disqus API bindings for Python

disqus-python Let's start with installing the API: pip install disqus-python Use the API by instantiating it, and then calling the method through dott

DISQUS 163 Oct 14, 2022
itadori webhook spammer fucker

itadori-webhook-spammer-fucker Installation # install the requirements $ python3 -m pip install -r requirements.txt $ python3 main.py Repl.it: https:/

6 Mar 05, 2022
The EscapePod Python SDK for Cyb3rVector's EscapePod Extension Proxy

EscapePod Extension SDK for Python by cyb3rdog This is the EscapePod Python SDK for Cyb3rVector's EscapePod Extension Proxy. With this SDK, you can: m

cyb3rdog 3 Mar 07, 2022
Twitter-bot - A Simple Twitter bot with python

twitterbot To use this bot, You will require API Key and Access Key. Signup at h

Bentil Shadrack 8 Nov 18, 2022
Baota-docker - Deploying baota panel via docker

baota-docker Deploying baota panel via docker. 通过docker一键部署宝塔面板。 一、前言 好像很多人对这个感兴

Mr. Cat 15 Dec 12, 2022
An open source, multipurpose, configurable discord bot that does it all

Spacebot - Discord Bot Music, Moderation, Fun, Utilities, Games and Fully Configurable. Overview • Contributing • Self hosting • Documentation (not re

Dhravya Shah 41 Dec 10, 2022
A project in order to analyze user's favorite musics, artists and genre

Spotify-Wrapped This is a project about Spotify Wrapped (which is an extra option for premium accounts, but you don't need to be premium here) This pr

Hossein Mohseni 19 Jan 04, 2023
Python implementation of Spotify's authorization flow.

Spotify API Apps 🎷 🎶 🎼 This repository consists of many strange codes that make you think why the hell this guy doing this. Well... I got some reas

5 Dec 17, 2021
Source code from thenewboston Discord Bot with Python tutorial series.

Project Setup Follow the steps below to set up the project on your environment. Local Development Create a virtual environment with Python 3.7 or high

Bucky Roberts 24 Aug 19, 2022
Discord bot written in python

Discord bot created by dpshark#3004 for fun List of features/commands: [keyword] responses tools !add [respons] Adds new response to [keyword] !remove

Daniel K.Gunleiksrud 3 Dec 28, 2021
A simple, fast, and awesome discord nuke bot! The only thing you need to add is your bot token.

SimpleNukeBot A simple, fast, and awesome discord nuke bot! The only thing you need to add is your bot token. Instructions: All you need to do is crea

Bisc 1 Apr 18, 2022
Python API for working with RESQML models

resqpy: Python API for working with RESQML models Introduction resqpy is a pure python package which provides a programming interface (API) for readin

BP 44 Dec 14, 2022
Discord Bot that can translate your text, count and reply to your messages with a personalised text

Discord Bot that can translate your text, count and reply to your messages with a personalised text

Grizz 2 Jan 26, 2022
AutomaTik is an automation system for MikroTik devices with simplicity and security in mind.

AutomaTik Installation AutomaTik is an automation system for MikroTik devices with simplicity and security in mind. Winbox is the main tool for MikroT

Osman Kazdal 4 Dec 05, 2022
CSUL Discord Bot

Cruzeiro This is the same old bot running on the Discord Server of CSUL, but i've changed the code. It's better now. Discord.py Heroku How i did The b

Operaho 6 Jan 31, 2022
ShadowClone allows you to distribute your long running tasks dynamically across thousands of serverless functions and gives you the results within seconds where it would have taken hours to complete

ShadowClone allows you to distribute your long running tasks dynamically across thousands of serverless functions and gives you the results within seconds where it would have taken hours to complete

240 Jan 06, 2023
An Undertale RPG Discord bot to fight monsters, bosses, level up and duel with other players

UNDERTALE-RPG An Undertale RPG Discord bot to fight monsters, bosses, level up and duel with other players!. Explanation you can collect gold which is

2 Oct 21, 2021
QuickStart specific rules for cfn-python-lint

AWS Quick Start cfn-lint rules This repo provides CloudFormation linting rules specific to AWS Quick Start guidelines, for more information see the Co

AWS Quick Start 12 Jul 30, 2022
How to add reaction on message discord.py

BA / HR / RS: Python (discord.py) skripta pomocu koje dodajete reakciju na vasu poruku putem komande !v ili da se dodaje samo u nekoj odredjenoj sobi.

Seekii 3 Dec 23, 2021
Scrape the Twitter Frontend API without authentication.

Twitter Scraper 🇰🇷 Read Korean Version Twitter's API is annoying to work with, and has lots of limitations — luckily their frontend (JavaScript) has

Buğra İşgüzar 3.4k Jan 08, 2023