Canvasity.transform

Add an arbitrary transform to 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 appends it to the current transform. 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. If it is not, most drawing operations will do nothing.

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