q5play
    Preparing search index...

    Function applyMatrix

    • 🦋 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.

      Parameters

      • a: number
      • b: number
      • c: number
      • d: number
      • e: number
      • f: number

      Returns void

      q5.draw = function () {
      background(0.8);

      applyMatrix(2, -1, 1, -1);
      circle(0, 0, 80);
      };