Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvas/src/canvaskit.ts>CanvasRenderingContext2D

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
import { type CanvasRenderingContext2D } from "https://deno.land/x/canvas@v1.3.0/src/canvaskit.ts";

The CanvasRenderingContext2D export interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects.