Phaser API Documentation

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

Description:

Sets the current scissor state.

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.

Examples:
Since: 3.0.0