This project uses Yarn PnP. If you with to use the more classic yarn node_modules
approach, or NPM, feel free to delete .yarn
and run it as you normally do.
For Yarn PnP in VSCode, click "Allow" on the prompt that asks if you wish to use the workspace's version of Typescript
The /original-layers
folder contains all the original layers for the various projects. They've been kept as is in order to give us the most flexibility as we generate images, allowing us to pick different output sizes easily.
Run the below command to take all of these original layers and resize them all to be the correct size and format, ready for use in the generation engine. The command also sets up the required folder structure
yarn setup
To generate the assets, we use a seeded RNG approach. We only need our RNG here to be "good enough", as the contract is responsible for ensuring there's no way of knowing which NFT will have which metadata.
yarn generate --metadata
yarn generate --images
If you're running the image generation on a machine in the background and wish to see the progress, run yarn check
, which will look in the out/images/
directory and report back the progress.