Set the transform the tiled image is drawn under, replacing any previous one.
Takes a DOMMatrix, anything new DOMMatrix() accepts -- a CSS
transform string, an {a, b, c, d, e, f} object, a 6- or 16-element
array -- or the six numbers themselves. The transform applies to the
pattern, not to the context, so it survives save() and restore().
Set the transform the tiled image is drawn under, replacing any previous one.
Takes a DOMMatrix, anything new DOMMatrix() accepts -- a CSS
transform string, an {a, b, c, d, e, f} object, a 6- or 16-element
array -- or the six numbers themselves. The transform applies to the
pattern, not to the context, so it survives save() and restore().
An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
MDN Reference