Canvasity.setTransform

Replace the current transform.

This takes six values for the upper two rows of a homogenous 3x3 matrix (i.e., {{a, c, e}, {b, d, f}, {0.0, 0.0, 1.0}}) describing an arbitrary affine transform and replaces the current transform with it. The values can represent any affine transform such as scaling, rotation, translation, or skew, or any composition of affine transforms.

The matrix must be invertible. f it is not, most drawing operations will do nothing.

Note: to reset the current transform back to the default, use 1.0, 0.0, 0.0, 1.0, 0.0, 0.0.

Parameters

a float

Horizontal scaling factor (m11).

b float

Vertical skewing (m12).

c float

Horizontal skewing (m21).

d float

Vertical scaling factor (m22).

e float

Horizontal translation (m31).

f float

Vertical translation (m32).

Meta