Definition[]
The scissor() method defines the scissor box.
Syntax[]
- gl.scissor(x, y, width, height)
Parameters[]
- x: integer, the default value is 0
- y: integer, the default value is 0
- width: non-negative integer
- height: non-negative integer
Examples[]
- // Does not allow modification of any pixels in the Canvas, if scissor testing is enabled
- gl.scissor(0, 0, 0, 0);