MCPcopy Create free account
hub / github.com/melonjs/melonJS / sumInner

Function sumInner

packages/melonjs/tests/createPattern_repeat_parity.spec.js:364–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362 const c2 = new CanvasTexture(48, 48);
363 const cache = video.renderer.cache;
364 const sumInner = () => {
365 let total = 0;
366 for (const inner of cache.units.values()) {
367 total += inner.size;
368 }
369 return total;
370 };
371
372 video.renderer.createPattern(c1.canvas, "repeat-x");
373 video.renderer.createPattern(c1.canvas, "repeat-y");

Calls

no outgoing calls

Tested by

no test coverage detected