Skip to main content
Module

x/caviar/deps.ts>WebGLRenderingContext#viewport

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

Sets the viewport, which specifies the affine transformation of x and y from normalized device coordinates to window coordinates.

Parameters

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