🦋 Applies a transformation matrix.
Accepts a 3x3 matrix as either an array or multiple arguments.
Note that in q5 WebGPU, the identity matrix (default) has a negative y scale to flip the y-axis to match the Canvas2D renderer.
q5.draw = function () { background(0.8); applyMatrix(2, -1, 1, -1); circle(0, 0, 80);}; Copy
q5.draw = function () { background(0.8); applyMatrix(2, -1, 1, -1); circle(0, 0, 80);};
🦋 Applies a transformation matrix.
Accepts a 3x3 matrix as either an array or multiple arguments.
Note that in q5 WebGPU, the identity matrix (default) has a negative y scale to flip the y-axis to match the Canvas2D renderer.