FANDOM


DefinitionEdit

The scissor() method defines the scissor box.

SyntaxEdit

gl.scissor(x, y, width, height)

ParametersEdit

  • x: integer, the default value is 0
  • y: integer, the default value is 0
  • width: non-negative integer
  • height: non-negative integer

ExamplesEdit

// Does not allow modification of any pixels in the Canvas, if scissor testing is enabled
gl.scissor(0, 0, 0, 0);

See alsoEdit

Community content is available under CC-BY-SA unless otherwise noted.