Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#scissor

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method WebGLRenderingContext.prototype.scissor
import { WebGLRenderingContext } from "https://deno.land/x/caviar@2.6.7/deps.ts";

Sets a scissor box, which limits the drawing to a specified rectangle.

Parameters

x: number
y: number
width: number
height: number