Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed layers/.DS_Store
Binary file not shown.
Binary file removed layers/Accessory/Helmet#10/Helmet.png
Binary file not shown.
Binary file removed layers/Accessory/MetallicShades#1.png
Binary file not shown.
Empty file removed layers/Accessory/NONE#100.png
Empty file.
Binary file removed layers/Accessory/Purple Glasses#25/Glasses front.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed layers/Back Accessory/Backpack#50/backpack-FILL.png
Binary file not shown.
Binary file removed layers/Back Accessory/rockets#40.png
Binary file not shown.
Binary file removed layers/Background/coulds#5.png
Binary file not shown.
Binary file removed layers/Background/stars#5.png
Binary file not shown.
Binary file removed layers/Background/swirl#5.png
Binary file not shown.
Binary file added layers/Backgrounds/Common/Blue#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Light Green#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Light Yellow#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Orange Red#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Orange#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Pink#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Purple#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Turquoise#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Yellow Green#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Common/Yellow#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Legendary/Beach View#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Legendary/Hills View#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Legendary/Jungle View#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Legendary/Party View#100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added layers/Backgrounds/Legendary/Visuals View#100.png
Binary file added layers/Backgrounds/Rare/Golden Patterns#100.png
Binary file added layers/Backgrounds/Rare/Green Patterns#100.png
Binary file added layers/Backgrounds/Rare/Pink Patterns#100.png
Binary file added layers/Backgrounds/Rare/Purple Patterns#100.png
Binary file added layers/Belts/Common/Black Classic#100.png
Binary file added layers/Belts/Common/Blue Classic#100.png
Binary file added layers/Belts/Common/Brown Classic#100.png
Binary file added layers/Belts/Common/Purple Classic#100.png
Binary file added layers/Belts/Common/Red Classic#100.png
Binary file added layers/Belts/Legendary/Brown Bag Belt#100.png
Binary file added layers/Belts/Legendary/Yellow Bag Belt#100.png
Binary file added layers/Belts/Rare/Black Ring#100.png
Binary file added layers/Belts/Rare/Blue Ring#100.png
Binary file added layers/Belts/Rare/Blue Tribal Buckle#100.png
Binary file added layers/Belts/Rare/Purple Tribal Buckle#100.png
Binary file added layers/Belts/Rare/Red Ring#100.png
Binary file added layers/Belts/Rare/Yellow Tribal Buckle#100.png
Binary file added layers/Bodies/Common/Green#100.png
Binary file added layers/Bodies/Common/Orange#100.png
Binary file added layers/Bodies/Common/Pink#100.png
Binary file added layers/Bodies/Common/Purple#100.png
Binary file added layers/Bodies/Common/Yellow#100.png
Binary file added layers/Bodies/Legendary/Bronze#100.png
Binary file added layers/Bodies/Legendary/Golden#100.png
Binary file added layers/Bodies/Legendary/Metallic#100.png
Binary file added layers/Bodies/Legendary/Roze Quartz#100.png
Binary file added layers/Bodies/Rare/Blue and Patterns#100.png
Binary file added layers/Bodies/Rare/Brown and Patterns#100.png
Binary file added layers/Bodies/Rare/Green and Patterns#100.png
Binary file added layers/Bodies/Rare/Pink and Patterns#100.png
Binary file added layers/Bodies/Rare/Purple and Patterns#100.png
Binary file added layers/Bodies/Rare/Yellow Shiny#100.png
Binary file added layers/Bottoms/Common/Brown Long#100.png
Binary file added layers/Bottoms/Common/Green Long#100.png
Binary file added layers/Bottoms/Common/Red Long#100.png
Binary file added layers/Bottoms/Legendary/Black Short#100.png
Binary file added layers/Bottoms/Legendary/Blue Patterns#100.png
Binary file added layers/Bottoms/Legendary/Blue Short#100.png
Binary file added layers/Bottoms/Legendary/Brown Patterns#100.png
Binary file added layers/Bottoms/Legendary/Magenta Patterns#100.png
Binary file added layers/Bottoms/Legendary/Purple Short#100.png
Binary file added layers/Bottoms/Rare/Blue Medium#100.png
Binary file added layers/Bottoms/Rare/Blue Skirt#100.png
Binary file added layers/Bottoms/Rare/Orange Skirt#100.png
Binary file added layers/Bottoms/Rare/Purple Skirt#100.png
Binary file added layers/Bottoms/Rare/White Medium#100.png
Binary file added layers/Bottoms/Rare/Yellow Medium#100.png
Binary file added layers/Bracelets/Common/Green Plastic#100.png
Binary file added layers/Bracelets/Common/Magenta Plastic#100.png
Binary file added layers/Bracelets/Common/Purple Plastic#100.png
Binary file added layers/Bracelets/Common/Recycling Theme#100.png
Binary file added layers/Bracelets/Legendary/Black Massive#100.png
Binary file added layers/Bracelets/Legendary/Blue Massive#100.png
Binary file added layers/Bracelets/Legendary/Colorful#100.png
Binary file added layers/Bracelets/Legendary/Red Massive#100.png
Binary file added layers/Bracelets/Rare/Black Beads#100.png
Binary file added layers/Bracelets/Rare/Pink Watch#100.png
Binary file added layers/Bracelets/Rare/Purple Watch#100.png
Binary file added layers/Bracelets/Rare/Yellow Watch#100.png
Binary file removed layers/Clothes/Shirt three#44/3shadow.png
Diff not rendered.
Binary file removed layers/Clothes/Shirt three#44/shirt-FILL.png
Diff not rendered.
Binary file removed layers/Clothes/floral#30.png
Diff not rendered.
Binary file removed layers/Clothes/gray tee#30.png
Diff not rendered.
Binary file removed layers/Clothes/shirt one #3.png
Diff not rendered.
Binary file removed layers/Clothes/shirt two#3.png
Diff not rendered.
Binary file added layers/Eyes/Brown Oval#100.png
Binary file added layers/Eyes/Green Oval#100.png
Binary file added layers/Eyes/Green Round#100.png
Binary file added layers/Eyes/Green Small#100.png
Binary file added layers/Eyes/Green Thin#100.png
Binary file added layers/Eyes/Purple Oval#100.png
Binary file added layers/Eyes/Purple Round#100.png
Binary file added layers/Eyes/Purple Small#100.png
Binary file added layers/Eyes/Purple Thin#100.png
Binary file added layers/Eyes/Yellow Round#100.png
Binary file added layers/Eyes/Yellow Small#100.png
Binary file added layers/Eyes/Yellow Thin#100.png
Binary file removed layers/Eyes/z1,eye#50/happy#50/eye2.png
Diff not rendered.
Binary file removed layers/Eyes/z1,eye#50/normal#50/eye1.png
Diff not rendered.
Binary file removed layers/Eyes/z1,star eyes#30.png
Diff not rendered.
Binary file removed layers/Hair/z1,Hair#20/bluehair#50.png
Diff not rendered.
Binary file removed layers/Hair/z1,Hair#20/purplehair#50.png
Diff not rendered.
Binary file added layers/Hats/Common/Beige Panama#100.png
Binary file added layers/Hats/Common/Blue Logo Cap#100.png
Binary file added layers/Hats/Common/Green Logo Cap#100.png
Binary file added layers/Hats/Common/Red Logo Cap#100.png
Binary file added layers/Hats/Common/Turquoise Panama#100.png
Binary file added layers/Hats/Legendary/Cyberpunk Cylinder#100.png
Binary file added layers/Hats/Legendary/Green Psychedelic#100.png
Binary file added layers/Hats/Rare/Brown Recycling Theme#100.png
Binary file added layers/Hats/Rare/Magenta Beanie#100.png
Binary file added layers/Hats/Rare/Purple Beanie#100.png
Binary file added layers/Hats/Rare/Red Recycing Theme#100.png
Binary file added layers/Hats/Rare/Yellow Recycling Theme#100.png
Binary file removed layers/Head/faceA#3.png
Diff not rendered.
Binary file removed layers/Head/faceB#3.png
Diff not rendered.
Binary file added layers/Mouths/Common/Blue Curved Smile#100.png
Binary file added layers/Mouths/Common/Orange Small#100.png
Binary file added layers/Mouths/Common/Orange Smile#100.png
Binary file added layers/Mouths/Common/Orange Tongue#100.png
Binary file added layers/Mouths/Common/Pink Small#100.png
Binary file added layers/Mouths/Common/Purple Curved Smile#100.png
Binary file added layers/Mouths/Common/Purple Tongue#100.png
Binary file added layers/Mouths/Common/Red Small#100.png
Binary file added layers/Mouths/Common/Red Smile#100.png
Binary file added layers/Necklaces/Common/Earth Pendant#100.png
Binary file added layers/Necklaces/Common/Green Recycling#100.png
Binary file added layers/Necklaces/Common/Yellow Recycling#100.png
Binary file added layers/Necklaces/Legendary/Blue Fantasy#100.png
Binary file added layers/Necklaces/Legendary/Golden Shells#100.png
Binary file added layers/Necklaces/Legendary/Golden Unique#100.png
Binary file added layers/Necklaces/Rare/Colorful#100.png
Binary file added layers/Necklaces/Rare/Pearls#100.png
Binary file added layers/Necklaces/Rare/Yellow Pendant#100.png
Binary file added layers/Noses/Common/Brown Long Curved#100.png
Binary file added layers/Noses/Common/Green Long#100.png
Binary file added layers/Noses/Common/Green Short Curved#100.png
Binary file added layers/Noses/Common/Green Short#100.png
Binary file added layers/Noses/Common/Purple Long#100.png
Binary file added layers/Noses/Common/Purple Short Curved#100.png
Binary file added layers/Noses/Common/Purple Short#100.png
Binary file added layers/Noses/Common/Yellow Long Curved#100.png
Binary file added layers/Noses/Common/Yellow Short Curved#100.png
Binary file added layers/Noses/Common/Yellow Short#100.png
Binary file added layers/Noses/Legendary/Blue Long Pierced#100.png
Binary file removed layers/Shirt Accessories/Golden Sakura#1.png
Diff not rendered.
Binary file removed layers/Shirt Accessories/gold chain#40.png
Diff not rendered.
Binary file removed layers/Shirt Accessories/nametag#40.png
Diff not rendered.
Binary file added layers/Tops/Common/Pink Top#100.png
Binary file added layers/Tops/Common/Red Top#100.png
Binary file added layers/Tops/Common/Yellow Top#100.png
Binary file added layers/Tops/Legendary/Green Dress#100.png
Binary file added layers/Tops/Legendary/Green Leather Bag#100.png
Binary file added layers/Tops/Legendary/White Leather Bag#100.png
Binary file added layers/Tops/Rare/Black Top#100.png
Binary file added layers/Tops/Rare/Blue Logo Shirt#100.png
Binary file added layers/Tops/Rare/Green Top#100.png
Binary file added layers/Tops/Rare/Purple Logo Shirt#100.png
Binary file added layers/Tops/Rare/Yellow Logo Shirt#100.png
235 changes: 122 additions & 113 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,21 @@
const path = require("path");
const isLocal = typeof process.pkg === "undefined";
const basePath = isLocal ? process.cwd() : path.dirname(process.execPath);

// see src/blendMode.js for available blend modes
// documentation: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
const { MODE } = require(path.join(basePath, "src/blendMode.js"));

const buildDir = path.join(basePath, "/build");
const layersDir = path.join(basePath, "/layers");

/*********************
* General Generator Options
***********************/

const description =
"This is the description of your NFT project, remember to replace this";
const baseUri = "ipfs://NewUriToReplace";

const outputJPEG = false; // if false, the generator outputs png's

/**
* Set your tokenID index start number.
* ⚠️ Be sure it matches your smart contract!
*/
const outputJPEG = false;
const startIndex = 0;

const format = {
width: 512,
height: 512,
smoothing: true, // set to false when up-scaling pixel art.
width: 3000,
height: 3000,
smoothing: true,
};

const background = {
Expand All @@ -40,126 +27,148 @@ const background = {

const layerConfigurations = [
{
growEditionSizeTo: 10,
namePrefix: "Series 2", // Use to add a name to Metadata `name:`
growEditionSizeTo: 50,
namePrefix: "Legendary",
layersOrder: [
{ name: "Backgrounds/Legendary", trait: "Background" },
{ name: "Bodies/Legendary", trait: "Body" },
{ name: "Bottoms/Legendary", trait: "Bottom" },
{ name: "Belts/Legendary", trait: "Belt" },
{ name: "Bracelets/Legendary", trait: "Bracelets" },
{ name: "Tops/Legendary", trait: "Top" },
{ name: "Necklaces/Legendary", trait: "Necklace" },
{ name: "Mouths/Legendary", trait: "Mouth" },
{ name: "Noses/Legendary", trait: "Nose" },
{ name: "Eyes", trait: "Eyes" },
{ name: "Hats/Legendary", trait: "Hats" },
],
},
{
growEditionSizeTo: 200,
namePrefix: "Rare",
layersOrder: [
{ name: "Backgrounds/Rare", trait: "Background" },
{ name: "Bodies/Rare", trait: "Body" },
{ name: "Bottoms/Rare", trait: "Bottom" },
{ name: "Belts/Rare", trait: "Belt" },
{ name: "Bracelets/Rare", trait: "Bracelets" },
{ name: "Tops/Rare", trait: "Top" },
{ name: "Necklaces/Rare", trait: "Necklace" },
{ name: "Mouths/Common", trait: "Mouth" },
{ name: "Noses/Common", trait: "Nose" },
{ name: "Eyes", trait: "Eyes" },
{ name: "Hats/Rare", trait: "Hats" },
],
},
{
growEditionSizeTo: 500,
namePrefix: "Common",
layersOrder: [
{ name: "Background" },
{
name: "Back Accessory",
// options: {
// bypassDNA: true,
// },
},
{ name: "Head" },
{ name: "Clothes" },
{ name: "Eyes" },
{ name: "Hair" },
{ name: "Accessory" },
{ name: "Shirt Accessories" },
{ name: "Backgrounds/Common", trait: "Background" },
{ name: "Bodies/Common", trait: "Body" },
{ name: "Bottoms/Common", trait: "Bottom" },
{ name: "Belts/Common", trait: "Belt" },
{ name: "Bracelets/Common", trait: "Bracelets" },
{ name: "Tops/Common", trait: "Top" },
{ name: "Necklaces/Common", trait: "Necklace" },
{ name: "Mouths/Common", trait: "Mouth" },
{ name: "Noses/Common", trait: "Nose" },
{ name: "Eyes", trait: "Eyes" },
{ name: "Hats/Common", trait: "Hats" },
],
},
// {
// growEditionSizeTo: 10,
// namePrefix: "Lion",
// resetNameIndex: true, // this will start the Lion count at #1 instead of #6
// layersOrder: [
// { name: "Background" },
// { name: "Hats" },
// { name: "Male Hair" },
// ],
// },
];

/**
* Set to true for when using multiple layersOrder configuration
* and you would like to shuffle all the artwork together
*/
const shuffleLayerConfigurations = false;

const debugLogs = true;
const emptyLayerName = "NONE";

const necklacesNames = [
"Earth Pendant",
"Green Recycling",
"Yellow Recycling",
"Blue Fantasy",
"Cyberpunk Mechanical",
"Golden Shells",
"Golden Unique",
"Colorful",
"Pearls",
"Yellow Pendant",
];

/*********************
* Advanced Generator Options
***********************/
const bottomsName = [
"Brown Long",
"Green Long",
"Red Long",
"Black Short",
"Brown Patterns",
"Purple Psychedelic",
"Blue Patterns",
"Green Psychedelic",
"Purple Short",
"Blue Short",
"Magenta Patterns",
"Yellow Psychedelic",
"Blue Medium",
"Orange Skirt",
"White Medium",
"Blue Skirt",
"Purple Skirt",
"Yellow Medium",
];

// if you use an empty/transparent file, set the name here.
const emptyLayerName = "NONE";
const beltsNames = [
"Black Classic",
"Blue Classic",
"Brown Classic",
"Purple Classic",
"Red Classic",
"Black Coconut Buckle",
"Blue Coconut Buckle",
"Brown Bag Belt",
"Yellow Bag Belt",
"Black Ring",
"Blue Ring",
"Blue Tribal Buckle",
"Purple Tribal Buckle",
"Red Ring",
"Yellow Tribal Buckle",
];

/**
* Incompatible items can be added to this object by a files cleanName
* This works in layer order, meaning, you need to define the layer that comes
* first as the Key, and the incompatible items that _may_ come after.
* The current version requires all layers to have unique names, or you may
* accidentally set incompatibilities for the _wrong_ item.
*/
const incompatible = {
// Red: ["Dark Long"],
// // directory incompatible with directory example
// White: ["rare-Pink-Pompadour"],
"White Leather Bag": necklacesNames,
"Green Leather Bag": necklacesNames,
"Black Logo Community": necklacesNames,
"Green Dress": bottomsName,
"Green Dress": beltsNames,
"Yellow Pendant": [
"Yellow Logo Shirt",
"Blue Logo Shirt",
"Purple Logo Shirt",
],
"Green and Patterns": ["Green Patterns"],
"Pink and Patterns": ["Pink Patterns"],
Green: ["Turquoise"],
Orange: ["Orange Red"],
Pink: ["Pink"],
Purple: ["Purple"],
Yellow: ["Yellow"],
};

/**
* Require combinations of files when constructing DNA, this bypasses the
* randomization and weights.
*
* The layer order matters here, the key (left side) is an item within
* the layer that comes first in the stack.
* the items in the array are "required" items that should be pulled from folders
* further in the stack
*/
const forcedCombinations = {
// floral: ["MetallicShades", "Golden Sakura"],
};
const forcedCombinations = [];

/**
* In the event that a filename cannot be the trait value name, for example when
* multiple items should have the same value, specify
* clean-filename: trait-value override pairs. Wrap filenames with spaces in quotes.
*/
const traitValueOverrides = {
Helmet: "Space Helmet",
"gold chain": "GOLDEN NECKLACE",
};

const extraMetadata = {};

const extraAttributes = () => [
// Optionally, if you need to overwrite one of your layers attributes.
// You can include the same name as the layer, here, and it will overwrite
//
// {
// trait_type: "Bottom lid",
// value: ` Bottom lid # ${Math.random() * 100}`,
// },
// {
// display_type: "boost_number",
// trait_type: "Aqua Power",
// value: Math.random() * 100,
// },
// {
// display_type: "boost_number",
// trait_type: "Health",
// value: Math.random() * 100,
// },
// {
// display_type: "boost_number",
// trait_type: "Mana",
// value: Math.floor(Math.random() * 100),
// },
];
const extraAttributes = () => [];

// Outputs an Keccack256 hash for the image. Required for provenance hash
const hashImages = true;

const rarityDelimiter = "#";

const uniqueDnaTorrance = 10000;

/**
* Set to true to always use the root folder as trait_type
* Set to false to use weighted parent folders as trait_type
* Default is true.
*/
const useRootTraitType = true;

const preview = {
Expand All @@ -171,7 +180,7 @@ const preview = {

const preview_gif = {
numberOfImages: 5,
order: "ASC", // ASC, DESC, MIXED
order: "ASC",
repeat: 0,
quality: 100,
delay: 500,
Expand Down