MCPcopy Create free account
hub / github.com/HashLips/generative-art-opensource / getAttributeForElement

Function getAttributeForElement

index.js:62–69  ·  view source on GitHub ↗
(_element)

Source from the content-addressed store, hash-verified

60
61// prepare attributes for the given element to be used as metadata
62const getAttributeForElement = (_element) => {
63 let selectedElement = _element.layer.selectedElement;
64 let attribute = {
65 name: selectedElement.name,
66 rarity: selectedElement.rarity,
67 };
68 return attribute;
69};
70
71// loads an image from the layer path
72// returns the image in a format usable by canvas

Callers 1

startCreatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected