diff --git a/.gitignore b/.gitignore index 09c28a63e..702fd5fea 100644 --- a/.gitignore +++ b/.gitignore @@ -140,3 +140,6 @@ dist # OSX .DS_Store + +/build +/layers \ No newline at end of file diff --git a/layers/Background/Black#1.png b/layers/Background/Black#1.png deleted file mode 100644 index c7dc38f3a..000000000 Binary files a/layers/Background/Black#1.png and /dev/null differ diff --git a/layers/Bottom lid/High#20.png b/layers/Bottom lid/High#20.png deleted file mode 100644 index 9aeb64576..000000000 Binary files a/layers/Bottom lid/High#20.png and /dev/null differ diff --git a/layers/Bottom lid/Low#40.png b/layers/Bottom lid/Low#40.png deleted file mode 100644 index aac391c25..000000000 Binary files a/layers/Bottom lid/Low#40.png and /dev/null differ diff --git a/layers/Bottom lid/Middle#40.png b/layers/Bottom lid/Middle#40.png deleted file mode 100644 index ae887bc48..000000000 Binary files a/layers/Bottom lid/Middle#40.png and /dev/null differ diff --git a/layers/Eye color/Cyan#1.png b/layers/Eye color/Cyan#1.png deleted file mode 100644 index 3ea45612e..000000000 Binary files a/layers/Eye color/Cyan#1.png and /dev/null differ diff --git a/layers/Eye color/Green#1.png b/layers/Eye color/Green#1.png deleted file mode 100644 index 20555e54b..000000000 Binary files a/layers/Eye color/Green#1.png and /dev/null differ diff --git a/layers/Eye color/Pink#1.png b/layers/Eye color/Pink#1.png deleted file mode 100644 index 7b6d2bd2c..000000000 Binary files a/layers/Eye color/Pink#1.png and /dev/null differ diff --git a/layers/Eye color/Purple#1.png b/layers/Eye color/Purple#1.png deleted file mode 100644 index 65ea574f5..000000000 Binary files a/layers/Eye color/Purple#1.png and /dev/null differ diff --git a/layers/Eye color/Red#1.png b/layers/Eye color/Red#1.png deleted file mode 100644 index d56e337fe..000000000 Binary files a/layers/Eye color/Red#1.png and /dev/null differ diff --git a/layers/Eye color/Yellow#10.png b/layers/Eye color/Yellow#10.png deleted file mode 100644 index e2b62a565..000000000 Binary files a/layers/Eye color/Yellow#10.png and /dev/null differ diff --git a/layers/Eyeball/Red#50.png b/layers/Eyeball/Red#50.png deleted file mode 100644 index 4abb0a8d2..000000000 Binary files a/layers/Eyeball/Red#50.png and /dev/null differ diff --git a/layers/Eyeball/White#50.png b/layers/Eyeball/White#50.png deleted file mode 100644 index 6a89d197d..000000000 Binary files a/layers/Eyeball/White#50.png and /dev/null differ diff --git a/layers/Goo/Green#1.png b/layers/Goo/Green#1.png deleted file mode 100644 index 56013ac21..000000000 Binary files a/layers/Goo/Green#1.png and /dev/null differ diff --git a/layers/Iris/Large#20.png b/layers/Iris/Large#20.png deleted file mode 100644 index b17ee6f6a..000000000 Binary files a/layers/Iris/Large#20.png and /dev/null differ diff --git a/layers/Iris/Medium#20.png b/layers/Iris/Medium#20.png deleted file mode 100644 index f1b109d9b..000000000 Binary files a/layers/Iris/Medium#20.png and /dev/null differ diff --git a/layers/Iris/Small#60.png b/layers/Iris/Small#60.png deleted file mode 100644 index e8893913b..000000000 Binary files a/layers/Iris/Small#60.png and /dev/null differ diff --git a/layers/Shine/Shapes#100.png b/layers/Shine/Shapes#100.png deleted file mode 100644 index a75ca598b..000000000 Binary files a/layers/Shine/Shapes#100.png and /dev/null differ diff --git a/layers/Top lid/High#30.png b/layers/Top lid/High#30.png deleted file mode 100644 index b2bc29cf2..000000000 Binary files a/layers/Top lid/High#30.png and /dev/null differ diff --git a/layers/Top lid/Low#20.png b/layers/Top lid/Low#20.png deleted file mode 100644 index 950cc1f9b..000000000 Binary files a/layers/Top lid/Low#20.png and /dev/null differ diff --git a/layers/Top lid/Middle#50.png b/layers/Top lid/Middle#50.png deleted file mode 100644 index 29524bff7..000000000 Binary files a/layers/Top lid/Middle#50.png and /dev/null differ diff --git a/rename.py b/rename.py new file mode 100644 index 000000000..69b8f52c9 --- /dev/null +++ b/rename.py @@ -0,0 +1,14 @@ +import os + +# specify the directory containing the files +directory = "./layers/" + +# loop through all the files and subdirectories in the directory +for root, dirs, files in os.walk(directory): + for filename in files: + # create the new filename by replacing "-" with " " + new_filename = filename.replace("-", " ") + print(filename) + + # rename the file with the new filename + os.rename(os.path.join(root, filename), os.path.join(root, new_filename)) diff --git a/src/config.js b/src/config.js index c46d867a0..383783e9e 100644 --- a/src/config.js +++ b/src/config.js @@ -5,8 +5,8 @@ const { NETWORK } = require(`${basePath}/constants/network.js`); const network = NETWORK.eth; // General metadata for Ethereum -const namePrefix = "Your Collection"; -const description = "Remember to replace this description"; +const namePrefix = "Sunglasses "; +const description = "Description of the collection"; const baseUri = "ipfs://NewUriToReplace"; const solanaMetadata = { @@ -24,26 +24,53 @@ const solanaMetadata = { // If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { - growEditionSizeTo: 5, + growEditionSizeTo: 40, + layersOrder: [{ name: "LensAviator" }, { name: "FrameAviator" }], + }, + { + growEditionSizeTo: 80, layersOrder: [ - { name: "Background" }, - { name: "Eyeball" }, - { name: "Eye color" }, - { name: "Iris" }, - { name: "Shine" }, - { name: "Bottom lid" }, - { name: "Top lid" }, + { name: "LensAviatorFlatTop" }, + { name: "FrameAviatorFlatTop" }, ], }, + { + growEditionSizeTo: 120, + layersOrder: [{ name: "LensBox" }, { name: "FrameBox" }], + }, + { + growEditionSizeTo: 160, + layersOrder: [{ name: "LensCatsEye" }, { name: "FrameCatsEye" }], + }, + { + growEditionSizeTo: 200, + layersOrder: [{ name: "LensOvel" }, { name: "FrameOvel" }], + }, + { + growEditionSizeTo: 240, + layersOrder: [{ name: "LensOversized" }, { name: "FrameOversized" }], + }, + { + growEditionSizeTo: 280, + layersOrder: [{ name: "LensRetro" }, { name: "FrameRetro" }], + }, + { + growEditionSizeTo: 320, + layersOrder: [{ name: "LensSquare" }, { name: "FrameSquare" }], + }, + { + growEditionSizeTo: 360, + layersOrder: [{ name: "LensWayfarer" }, { name: "FrameWayfarer" }], + }, ]; -const shuffleLayerConfigurations = false; +const shuffleLayerConfigurations = true; const debugLogs = false; const format = { - width: 512, - height: 512, + width: 2160, + height: 2160, smoothing: false, }; @@ -72,7 +99,7 @@ const pixelFormat = { }; const background = { - generate: true, + generate: false, brightness: "80%", static: false, default: "#000000", @@ -92,7 +119,7 @@ const preview = { }; const preview_gif = { - numberOfImages: 5, + numberOfImages: 10, order: "ASC", // ASC, DESC, MIXED repeat: 0, quality: 100, diff --git a/src/main.js b/src/main.js index e9c08dcf2..cd543c891 100644 --- a/src/main.js +++ b/src/main.js @@ -111,8 +111,10 @@ const layersSetup = (layersOrder) => { }; const saveImage = (_editionCount) => { + var frame = attributesList[0].value; + var lens = attributesList[1].value; fs.writeFileSync( - `${buildDir}/images/${_editionCount}.png`, + `${buildDir}/images/${frame} ${lens}#1.png`, canvas.toBuffer("image/png") ); };