Skip to main content
Module

x/skia_canvas/src/canvas.ts>createCanvas

Fast HTML Canvas API implementation for Deno using Skia.
Go to Latest
function createCanvas
import { createCanvas } from "https://deno.land/x/skia_canvas@0.5.0/src/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