Phaser API Documentation

  Version: 
setCutPosition([x], [y])

Description:

Sets the x and y position within the source image to cut from.

Parameters:

name type arguments description
x number <optional>

X position within the source image to cut from.

y number <optional>

Y position within the source image to cut from.

Returns:
Description:

This Frame object.

Since: 3.85.0
Source: src/textures/Frame.js (Line 339)