Pass:setScissor
EditSets the scissor rectangle. Any pixels outside the scissor rectangle will not be drawn.
Arguments
Name | Type | Description |
x | number | The x coordinate of the upper-left corner of the scissor rectangle. |
y | number | The y coordinate of the upper-left corner of the scissor rectangle. |
w | number | The width of the scissor rectangle. |
h | number | The height of the scissor rectangle. |
Returns
Nothing
Disable the scissor.
Arguments
None
Returns
Nothing
Notes
x
and y
can not be negative. w
and h
must be positive.
By default, the scissor covers the entire canvas.