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

Function fakeImage

packages/melonjs/tests/tmxlayer-data.spec.js:17–23  ·  view source on GitHub ↗
(name, w = 64, h = 64)

Source from the content-addressed store, hash-verified

15const FLIP_AD_BIT = 1 << 2;
16
17function fakeImage(name, w = 64, h = 64) {
18 const canvas = document.createElement("canvas");
19 canvas.width = w;
20 canvas.height = h;
21 imgList[name] = canvas;
22 return canvas;
23}
24
25const tilesetData = {
26 firstgid: 1,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected