-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
21 lines (19 loc) · 2.36 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from Controllers import generateRandomCollection
from Variant import Variant
traits = {
'background': [Variant("cyan", "cyan.png", 0.13), Variant("green", "green.png", 0.13), Variant("pink", "pink.png", 0.13), Variant("purple", "purple.png", 0.13), Variant("red", "red.png", 0.13), Variant("yellow", "yellow.png", 0.13), Variant("orange", "orange.png", 0.1), Variant("grey", "grey.png", 0.1)],
'body': [Variant("body", "body.png", 1)],
'arm': [Variant("furry", "furry.png", 0.225), Variant("skeleton", "skeleton.png", 0.225), Variant("human", "human.png", 0.225), Variant("tenticle", "tenticle.png", 0.225), Variant("tenticle-purple", "tenticle-purple.png", 0.225)],
'eyes': [Variant("green", "green.png", 0.25), Variant("purple", "purple.png", 0.25), Variant("red", "red.png", 0.25), Variant("shades", "shades.png", 0.25)],
'hair': [Variant("long-grey", "long-grey.png", 0.14),Variant("long-purple", "long-purple.png", 0.10), Variant("long-yellow", "long-yellow.png", 0.14), Variant("short-blue", "short-blue.png", 0.10), Variant("short-green", "short-green.png", 0.10), Variant("short-pink", "short-pink.png", 0.22), Variant("short-yellow", "short-yellow.png", 0.18)],
'top': [Variant("cyan-crop-top", "cyan-crop-top.png", 0.125), Variant("dark-blue-tshirt", "dark-blue-tshirt.png", 0.125), Variant("green-crop-top", "green-crop-top.png", 0.125), Variant("orange-tshirt", "orange-tshirt.png", 0.125), Variant("pink-tshirt", "pink-tshirt.png", 0.125), Variant("red-crop-top", "red-crop-top.png", 0.125), Variant("yellow-crop-top", "yellow-crop-top.png", 0.125), Variant("purple-crop-top", "purple-crop-top.png", 0.125)],
'hat': [Variant("antlerns", "antlerns.png", 0.20), Variant("horns", "horns.png", 0.20), Variant("wizard", "wizard.png", 0.25), Variant("empty", "empty.png", 0.30)],
'mouth': [Variant("evil", "evil.png", 0.15), Variant("smile", "smile.png", 0.35), Variant("grin", "grin.png", 0.20), Variant("surprised", "surprised.png", 0.30)]
}
if __name__ == '__main__':
count = 125 # number of unique nft to generate
minimumDifference = 2 # minimum number of differences in the traits in each nft.
exportDir = "exports" # export directory of images
useFolder = False # turn it to false if you don't want structured folders
generateRandomCollection(traits, count, exportDir, minimumDifference, useFolder=useFolder)
print("Done! All files generated.")