Skip to content

dssllc/project-ted-nft

Repository files navigation

project-ted-nft

A simple NFT learning project between a father and daughter

Background

I have a small startup and have various projects to learn and apply blockchain technology. This project is an NFT art collection in collaboration with my daughter, a talented young artist.

We are starting simple. She provides a basic set of image sets, and I do the rest.

This project is intended to be the first of many to showcase her artwork and demonstrate our abilities.

How it works

Creating the Project Ted NFT collection has two parts:

  1. Creating the unique artwork
  2. Creating the blockchain smart contract

Creating the unique artwork

The images are PNG files stores in the img/parts directory.

Teds consist of a background, legs, body, head, and face.

Each Ted has a unique number 5 digits long, each digit ranging from 1 to 5.

Each value indicates which part variation the Ted has, whether blue, green, red, teal, or yellow.

For example, Ted 11111 is all blue, and Ted 22222 is all green, Ted 11222 is part blue and part green, and so on.

The collection is generated with a small python script using the Pillow image library. A single loop iterates from Ted 11111 to Ted 55555, skipping any number with a digit greater than 5, combining the respective par images, and outputs the unique Ted into the img/collection directory.

Please see generate_collection.py for more information on the algorithm.

Uniqueness

Total NFTs: 3125 (5 parts ^ 5 variants)

Type # in collection Examples Percentage
Original Variations 5 11111, 22222, 33333 0.16%
Single Part Difference 100 11112, 22225, 44144 3.2%

Script performance

% time python3 generate_collection.py

python3 generate_collection.py  556.09s user 5.58s system 99% cpu 9:27.34 total

Creating the blockchain smart contract

About

A simple NFT project between a father and daughter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages