setScissor method

dynamic setScissor(
  1. dynamic x,
  2. dynamic y,
  3. dynamic width,
  4. dynamic height,
)

Implementation

setScissor(x, y, width, height) {
  if (x == null) {
    this._scissor = null;
  } else {
    this._scissor = {"x": x, "y": y, "width": width, "height": height};
  }
}