Closed whoabuddy closed 1 year ago
Pushed some code on how I envision separating the traits / layers then creating an SVG as a result. First two below generated/saved by the script (note that I only have one option for the head right now):
To use the script:
./generation
npm install
npx ts-node generate-svgs.ts
This will eventually output a set to a folder and make more advanced selections.
This PR adds an SVG generator that:
undefined
to the arraySample results below, generated images are stored in the
generation/faces
folder, which may need to be created first before running the script.To run locally:
generation/
foldernpm i
to install dependencies (@types/node, ts-node, typescript)npx ts-node generate-svgs.ts
to run the scriptThe number of SVGs generated is set in the
generate-svgs.ts
file at the bottom, e.g.generateSVGs(5000);
Fixes #42