Skip to main content
Module

x/canvas/mod.ts

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
import * as canvas from "https://deno.land/x/canvas@v1.2.2/mod.ts";

Interfaces

An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().

An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.

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.

Represents the set of enum values.

Represents a single member of an enum.

CanvasKit is built with Emscripten and Embind. Embind adds the following methods to all objects that are exposed with it.

See GrContext.h for more on this class.

This object is a wrapper around a pointer to some memory on the WASM heap. The type of the pointer was determined at creation time.

See Paragraph.h for more information on this class. This is only available if Paragraph has been compiled in.

See SkParticleEffect.h for more details.

A simple wrapper around SkTextBlob and the simple Text Shaper.

See SkAnimatedImage.h for more information on this class.

See SkCanvas.h for more information on this class.

Represents a blob of memory. See SkData.h for more on this class.

See SkFont.h for more on this class.

See SkFontMgr.h for more details

See SkImage.h for more information on this class.

See SkPaint.h for more information on this class.

See SkPath.h for more information on this class.

See SkPicture.h for more information on this class.

See SkRuntimeEffect.h for more details.

See SkVertices.h for more on this class.

Options used for SkPath.stroke(). If an option is omitted, a sensible default will be used.

Type Aliases

Part of the Canvas2D emulation code

See SkColorFilter.h for more on this class. The objects are opaque.

See SkImageFilter.h for more on this class. The objects are opaque.

See SkMaskFilter.h for more on this class. The objects are opaque.

See SkPathEffect.h for more on this class. The objects are opaque.

See SkShader.h for more on this class. The objects are opaque.

See SkTextBlob.h for more on this class. The objects are opaque.

See SkTypeface.h for more on this class. The objects are opaque.