HashLips / generative-art-opensource
- четверг, 2 сентября 2021 г. в 00:38:19
Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
node.js
on your local system (https://nodejs.org/en/)git@github.com:HashLips/generative-art-opensource.git
yarn add all
to install dependenciesnode index.js
./output
folder to find your generated images to use as NFTsThe file ./input/config.js
contains the following properties that can be adjusted to your preference in order to change the behavior of the NFT generation procedure:
1000px
1000px
./input
${baseImageUri}/${id}
.The image layers are different parts that make up a full image by overlaying on top of each other. E.g. in this example we start with the eyeball and layer features like the eye lids or iris on top to create the completed and unique eye, which we can then use as part of our NFT collection. To ensure uniqueness, we want to add various features and multiple options for each of them in order to allow enough permutations for the amount of unique images we require.
To start, copy the layers/features and their images in a flat hierarchy at a directory of your choice (by default we expect them in ./input/
). The features should contain options for each rarity that is provided via the config file.
After adding the layers, adjust them accordingly in the config.js
by providing the directory path, positioning and sizes.