Phaser API Documentation

  Version: 
pushScissor(x, y, width, height, [drawingBufferHeight])

Description:

Pushes a new scissor state. This is used to set nested scissor states.

Parameters:

name type arguments description
x number

The x position of the scissor.

y number

The y position of the scissor.

width number

The width of the scissor.

height number

The height of the scissor.

drawingBufferHeight number <optional>

Optional drawingBufferHeight override value.

Returns:
Description:

An array containing the scissor values.

Type:
  • Array.<number>
Since: 3.0.0