Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface CanvasPattern

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

MDN Reference

interface CanvasPattern {
    setTransform(transform?: DOMMatrix2DInit): void;
}
Index
  • The CanvasPattern.setTransform() method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.

    MDN Reference

    Parameters

    Returns void

Was this helpful?