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.
PropertiesEdit
Representing an opaque object, there is no exposed property.
MethodsEdit
There is no inherited method.
CanvasPattern.setTransform()
- Applies an
SVGMatrix
representing a linear transform to the pattern.
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'CanvasPattern' in that specification. |
Living Standard | Added setTransform() method in v5. |
Browser compatibilityEdit
See alsoEdit
CanvasRenderingContext2D.createPattern()
- The
<canvas>
element and its associated interface,HTMLCanvasElement