Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
79
const
saveLayer = (_canvas, _edition) => {
80
fs.writeFileSync(`${buildDir}/${_edition}.png`, _canvas.toBuffer(
"image/png"
));
81
};
82
83
const
addMetadata = _edition => {
84
let
dateTime = Date.now();
Callers
1
drawLayer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected