web api interface
CanvasPattern
Available in workers
The CanvasPattern interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the createPattern() method.
It can be used as a fillStyle or strokeStyle.
Instance properties
As an opaque object, this has no exposed property.
Instance methods
There are no inherited method.
setTransform()- : Applies a
DOMMatrixrepresenting a linear transform to the pattern.
- : Applies a
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
createPattern()- The
<canvas>element and its associated interface,HTMLCanvasElement