Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/shapes_plus/mod.ts>createCanvas

Used canvas library to make shapes
Latest
function createCanvas
Re-export
import { createCanvas } from "https://deno.land/x/shapes_plus@v0.0.5.1/mod.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