Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface WebGLOptions
import { type WebGLOptions } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";

Options for configuring a WebGL context. If an option is omitted, a sensible default will be used. These are defined by the WebGL standards.

Properties

optional
alpha: number
optional
antialias: number
optional
depth: number
optional
enableExtensionsByDefault: number
optional
explicitSwapControl: number
optional
failIfMajorPerformanceCaveat: number
optional
majorVersion: number
optional
minorVersion: number
optional
preferLowPowerToHighPerformance: number
optional
premultipliedAlpha: number
optional
preserveDrawingBuffer: number
optional
renderViaOffscreenBackBuffer: number
optional
stencil: number