Skip to main content
Module

x/evt/lib/types/index.ts>dom.CanvasPattern

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.CanvasPattern
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/types/index.ts";
const { CanvasPattern } = dom;

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

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