CanvasPattern
CanvasPattern
objects are created via
canvas.createPattern and can be assigned to
the canvas.fillStyle and
canvas.strokeStyle properties.
They can be used to customize the canvas drawing operations using a repeatable pattern.
The pattern object can be further customized using setTransform.
See also the CanvasPattern documentation at MDN.
pattern.setTransform()(number, number, number, number, number, number) => void
Applies a matrix transformation to the pattern.
See also setTransform at MDN.