MCPcopy
hub / github.com/HashLips/hashlips_art_engine / loadImgData

Function loadImgData

utils/pixelate.js:40–50  ·  view source on GitHub ↗
(_imgObject)

Source from the content-addressed store, hash-verified

38};
39
40const loadImgData = async (_imgObject) => {
41 try {
42 const image = await loadImage(`${_imgObject.path}`);
43 return {
44 imgObject: _imgObject,
45 loadedImage: image,
46 };
47 } catch (error) {
48 console.error("Error loading image:", error);
49 }
50};
51
52const draw = (_imgObject) => {
53 let size = pixelFormat.ratio;

Callers 1

startCreatingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected