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

Function saveLayer

src/main.js:79–81  ·  view source on GitHub ↗
(_canvas, _edition)

Source from the content-addressed store, hash-verified

77};
78
79const saveLayer = (_canvas, _edition) => {
80 fs.writeFileSync(`${buildDir}/${_edition}.png`, _canvas.toBuffer("image/png"));
81};
82
83const addMetadata = _edition => {
84 let dateTime = Date.now();

Callers 1

drawLayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected