setTransform

fun setTransform(transform: DOMMatrix2DInit = definedExternally)(source)

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

MDN Reference