Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dwm/ext/canvas.ts>createCanvas

Deno Window Manager: Cross-platform window creation and management
Go to Latest
function createCanvas
Re-export
import { createCanvas } from "https://deno.land/x/dwm@0.3.4/ext/canvas.ts";

Creates a new canvas with the given dimensions.

Only pass gpu: true if you have an OpenGL context initialized and made current already.

Parameters

width: number
height: number
optional
gpu: boolean