MCPcopy Create free account
hub / github.com/HashLips/generative-art-node / buildSetup

Function buildSetup

src/main.js:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70};
71
72const buildSetup = () => {
73 if (fs.existsSync(buildDir)) {
74 fs.rmdirSync(buildDir, { recursive: true });
75 }
76 fs.mkdirSync(buildDir);
77};
78
79const saveLayer = (_canvas, _edition) => {
80 fs.writeFileSync(`${buildDir}/${_edition}.png`, _canvas.toBuffer("image/png"));

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected