setTransform

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

The CanvasPattern.setTransform() method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.

MDN Reference