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

Method constructor

packages/melonjs/src/lang/deprecated.js:29–32  ·  view source on GitHub ↗

* @param {number} width - the desired width of the canvas * @param {number} height - the desired height of the canvas * @param {object} attributes - The attributes to create both the canvas and context * @param {boolean} [attributes.context="2d"] - the context type to be created ("2d", "webgl"

(width, height, attributes)

Source from the content-addressed store, hash-verified

27 * @param {boolean} [attributes.antiAlias=false] - Whether to enable anti-aliasing, use false (default) for a pixelated effect.
28 */
29 constructor(width, height, attributes) {
30 warning("CanvasTexture", "CanvasRenderTarget", "17.1.0");
31 super(width, height, attributes);
32 }
33}
34
35/**

Callers

nothing calls this directly

Calls 1

warningFunction · 0.90

Tested by

no test coverage detected