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

Method resize

packages/melonjs/src/renderable/imagelayer.js:154–159  ·  view source on GitHub ↗

* resize the Image Layer to match the given size * @param {number} w - new width * @param {number} h - new height

(w, h)

Source from the content-addressed store, hash-verified

152 * @param {number} h - new height
153 */
154 resize(w, h) {
155 return super.resize(
156 this.repeatX ? Infinity : w,
157 this.repeatY ? Infinity : h,
158 );
159 }
160
161 /**
162 * createPattern function

Callers 2

onActivateEventMethod · 0.95
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected