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

Function drawElement

index.js:80–88  ·  view source on GitHub ↗
(_element)

Source from the content-addressed store, hash-verified

78};
79
80const drawElement = (_element) => {
81 ctx.drawImage(
82 _element.loadedImage,
83 _element.layer.position.x,
84 _element.layer.position.y,
85 _element.layer.size.width,
86 _element.layer.size.height
87 );
88};
89
90// check the configured layer to find information required for rendering the layer
91// this maps the layer information to the generated dna and prepares it for

Callers 1

startCreatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected