MCPcopy
hub / github.com/phaserjs/phaser / setCrop

Method setCrop

types/phaser.d.ts:18305–18305  ·  view source on GitHub ↗

* Applies a crop to a texture based Game Object, such as a Sprite or Image. * * The crop is a rectangle that limits the area of the texture frame that is visible during rendering. * * Cropping a Game Object does not change its siz

(x?: number | Phaser.Geom.Rectangle, y?: number, width?: number, height?: number)

Source from the content-addressed store, hash-verified

18303 * @returns This Game Object instance.
18304 */
18305 setCrop(x?: number | Phaser.Geom.Rectangle, y?: number, width?: number, height?: number): this;
18306 }
18307
18308 /**

Callers 3

TextureManager.jsFile · 0.65
Crop.test.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected