Module

x/canvas/mod.ts

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface WebGLOptions
import { type WebGLOptions } from "https://deno.land/x/canvas@v1.0.0/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