Skip to main content

applyMatrix

Description

Multiplies the current matrix by the one specified through the parameters. This is a powerful operation that can perform the equivalent of translate, scale, shear and rotate all at once. You can learn more about transformation matrices on Wikipedia.

The parameters correspond to a transformation matrix in the form of:

Docusaurus themed imageDocusaurus themed image

Syntax

applyMatrix(a, b, c, d, e, f)

Parameters

ParameterDescription
anumbers which define the 2×3 matrix to be multiplied
bnumbers which define the 2×3 matrix to be multiplied
cnumbers which define the 2×3 matrix to be multiplied
dnumbers which define the 2×3 matrix to be multiplied
enumbers which define the 2×3 matrix to be multiplied
fnumbers which define the 2×3 matrix to be multiplied