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

x/canvas/mod.ts>CanvasPattern

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

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

Methods

setTransform(transform?: DOMMatrix2DInit): void
setTransform(transform?: DOMMatrix2DInit): void

Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.