BeginScissorMode method

void BeginScissorMode(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Begin scissor mode (define screen area for following drawing)

Implementation

void BeginScissorMode(
  num x,
  num y,
  num width,
  num height,
) => run(
  () => _debugLabels.BeginScissorMode(x, y, width, height),
  () => _flat.BeginScissorMode(
    x.toInt(),
    y.toInt(),
    width.toInt(),
    height.toInt(),
  ),
);